From nobody Sun Feb 8 12:31:49 2026 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28D9622DFA4 for ; Wed, 14 Jan 2026 17:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768410015; cv=none; b=oC4+8+39D2Qz0GckTZKiRSrkrX8ZuOd6JShvkdJbUYUWnifL8EgmlFNBMQQPXV5sjQSWFTmUJ0tSBZvduERMfrxkkvI7xfFXPxzpVk6wRFxDkp67xRIb/cm3HaPYySJYgXu7kYsKDFEiWDT7lZJFizeSah+3FPbpt08QTOcuaW4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768410015; c=relaxed/simple; bh=TdQ1PxnixZuTqBgDjCx71BraKAPrKTU04PfdZhnHF8I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GyM36gaFajAaK8tyEOlpWhftIm5O2kJv6USkT1nM8nti1XV8H8qJBLoptPSj/yAnfVDr3Q2b7zP9aPscP3eS0WWthgmm00F4T08BL/zLQuoRUfB+JhJvLA0BSjKs5yCpCnixlGsgL+dEOUfZ4lgm5nfJ7E1xpevakNNth/XI0Hg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cdVIeaZx; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cdVIeaZx" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-34e90f7b49cso5101460a91.3 for ; Wed, 14 Jan 2026 09:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768410013; x=1769014813; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GagbSgLZicpSoO4nWTcoXi5mvyUj9ai6yjSI7MoALoI=; b=cdVIeaZxZUHKN1VeQr+Zx00nbmrlRRwqwP3IOaVM2EosKnBdUIuabZfrdC68jlPKb+ jjyA5dzIiUU9hYSr26nieu9Ek4re7BTl0DflkC1zm/p095lNKRJddLuXlQcxV95ftBDn oKrop6AZ4zGTpMfqPRzwXRENmQltG4oXwp6USF9/7+FDdPrCds36m4+ZB3NwTQg3t4aV chI8gtNd4IrWs/jYE5LyHjoskY5ZgH0HiP88UQZt5aL9t/Pc9Jbydkd+d0PWQdDJplrI bhcwpLpaKlIUiNinWj0CFHA0EpHJYOXTvMcA4ThGx7x6SSYeS4mnbPs6xPRngkAtHacU dSaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768410013; x=1769014813; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GagbSgLZicpSoO4nWTcoXi5mvyUj9ai6yjSI7MoALoI=; b=ia5jK6q0eG7WCArwM8B9SLPdRB1SbsnwW3Pv5hEVbGOl6/8NoIS56pT5PwhaLtGxo+ MZDN1c+LPxTBmfohDANlYpQ0vMiSM63KbTW2uPjlPwEeAGoxTxP70pk5V8mCR9SoszPT vHuUJRBiBk+tJVnt2i8AFOYWoWJ2R5oydIuvfDAiIpR1hYX2Cz4W6EN/E1IqD2cVnsF1 dzEeb4BEIOegi949zU1DAjELiKIPVle+qV9uW4Z5nGjDIWSvCONu7wki/MAzcrYcf0t0 42Ipf+p+tiWU3K2YXUD/rMFlqxwezdVHyC5zb9TuSY2gR15Vy0q6uvBmX7HzEPAGTDWG mJgw== X-Forwarded-Encrypted: i=1; AJvYcCUHvMTIDxC2CWLgkLo5phY7ErFg/stkV+vmp0AhAaL/eUW999eEBpZkvrCk8uZzIgyW0SdPQ8MpMMrlWlc=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6yyh4NjJVcnXLiFTHGO1GZP53ChJzSwLwAQrkdJq4KqZoqmCV WDddk6dWsL389QxIIQEpa7tIRkmEpGwSV9v3d3qtXWOdKQhuTD9Tz//I X-Gm-Gg: AY/fxX5adeXe5RExNWa8aq02oCu0xvrnAGhkG4ssmR+yD0Kti0EltIpLHVX5EW02X5R ElSLM8S41NeyjAgfuTjH9A27xS66oTPUCTLy4ALd977urYo8b852VYhvCWTcQTA7asb3/CZ+5NI wiWPVdv+E95c8npqKuD1S+yNKoCXOt8NvKsbntN29PO2c0ryDwXbhcS/QtuiW4x9LWP6laEeY+w r37xJsp1JdNUKkTe5EJ5BaRr4rGBhW90lDpr3jw16nuc5ceGJcDv10rnJCqMNCimJR31ZAhm/5q 0hauCVw1mj0JryeMK0qvIhmNdR7RWgKKIx3/f1Whg7GwqW9zcbQqK7cf7orjZxrfwn/abooHnbn tPZPAgjVtSNriXZpFkGd9D3I4NnRPze7Dqh24RrPw2+xLC4stqdlcivfoeELrV9zPGDVQuwZMwy z3Rzo5vKdsgJxvDCWE200NkzY= X-Received: by 2002:a17:90b:4a52:b0:340:e8e9:cc76 with SMTP id 98e67ed59e1d1-351090da00fmr3612320a91.11.1768410013265; Wed, 14 Jan 2026 09:00:13 -0800 (PST) Received: from karthik.bbrouter ([103.215.237.249]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-352677c9315sm32098a91.2.2026.01.14.09.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jan 2026 09:00:12 -0800 (PST) From: Karthikey Kadati To: gregkh@linuxfoundation.org, tsbogend@alpha.franken.de Cc: linux-staging@lists.linux.dev, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, karthikey3608@gmail.com, kernel test robot Subject: [PATCH v3] staging: octeon: Remove port status typedefs Date: Wed, 14 Jan 2026 22:28:34 +0530 Message-ID: <20260114165834.33387-1-karthikey3608@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove cvmx_pip_port_status_t and cvmx_pko_port_status_t typedefs and replace them with struct cvmx_pip_port_status and struct cvmx_pko_port_stat= us to match Linux kernel coding style. This also updates the MIPS architecture headers to name the anonymous structs so they can be referenced by the staging driver. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202601131108.A90iCRFi-lkp@int= el.com/ Signed-off-by: Karthikey Kadati --- v3: - Fix build failure by naming anonymous structs in MIPS headers (Reported by kernel test robot). - Add Reported-by and Closes tags. v2: - Remove invalid "Unix Antigravity" Signed-off-by. - Submit as standalone patch (detached from unrelated series). arch/mips/include/asm/octeon/cvmx-pip.h | 2 +- arch/mips/include/asm/octeon/cvmx-pko.h | 2 +- drivers/staging/octeon/ethernet.c | 4 ++-- drivers/staging/octeon/octeon-stubs.h | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/mips/include/asm/octeon/cvmx-pip.h b/arch/mips/include/as= m/octeon/cvmx-pip.h index 01ca7267a..cb3342313 100644 --- a/arch/mips/include/asm/octeon/cvmx-pip.h +++ b/arch/mips/include/asm/octeon/cvmx-pip.h @@ -180,7 +180,7 @@ typedef union { /** * Status statistics for a port */ -typedef struct { +typedef struct cvmx_pip_port_status { /* Inbound octets marked to be dropped by the IPD */ uint32_t dropped_octets; /* Inbound packets marked to be dropped by the IPD */ diff --git a/arch/mips/include/asm/octeon/cvmx-pko.h b/arch/mips/include/as= m/octeon/cvmx-pko.h index f18a7f24d..46bb5ddcb 100644 --- a/arch/mips/include/asm/octeon/cvmx-pko.h +++ b/arch/mips/include/asm/octeon/cvmx-pko.h @@ -114,7 +114,7 @@ typedef enum { CVMX_PKO_LOCK_CMD_QUEUE =3D 2, } cvmx_pko_lock_t; =20 -typedef struct { +typedef struct cvmx_pko_port_status { uint32_t packets; uint64_t octets; uint64_t doorbell; diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/eth= ernet.c index eadb74fc1..6d03d2346 100644 --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c @@ -201,8 +201,8 @@ EXPORT_SYMBOL(cvm_oct_free_work); */ static struct net_device_stats *cvm_oct_common_get_stats(struct net_device= *dev) { - cvmx_pip_port_status_t rx_status; - cvmx_pko_port_status_t tx_status; + struct cvmx_pip_port_status rx_status; + struct cvmx_pko_port_status tx_status; struct octeon_ethernet *priv =3D netdev_priv(dev); =20 if (priv->port < CVMX_PIP_NUM_INPUT_PORTS) { diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon= /octeon-stubs.h index 35b5078ba..f6d502193 100644 --- a/drivers/staging/octeon/octeon-stubs.h +++ b/drivers/staging/octeon/octeon-stubs.h @@ -386,7 +386,7 @@ union cvmx_ipd_sub_port_qos_cnt { } s; }; =20 -typedef struct { +struct cvmx_pip_port_status { uint32_t dropped_octets; uint32_t dropped_packets; uint32_t pci_raw_packets; @@ -409,13 +409,13 @@ typedef struct { uint32_t inb_packets; uint64_t inb_octets; uint16_t inb_errors; -} cvmx_pip_port_status_t; +}; =20 -typedef struct { +struct cvmx_pko_port_status { uint32_t packets; uint64_t octets; uint64_t doorbell; -} cvmx_pko_port_status_t; +}; =20 union cvmx_pip_frm_len_chkx { uint64_t u64; @@ -1260,11 +1260,11 @@ static inline int octeon_is_simulation(void) } =20 static inline void cvmx_pip_get_port_status(uint64_t port_num, uint64_t cl= ear, - cvmx_pip_port_status_t *status) + struct cvmx_pip_port_status *status) { } =20 static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t cl= ear, - cvmx_pko_port_status_t *status) + struct cvmx_pko_port_status *status) { } =20 static inline cvmx_helper_interface_mode_t cvmx_helper_interface_get_mode(= int --=20 2.43.0