Article View: linux.kernel.netdev
Article #11796[PATCH] [v2] net: octeontx2: fix building without DEBUGFS
From: Arnd Bergmann
Date: Thu, 05 Nov 2026 16:19
Date: Thu, 05 Nov 2026 16:19
67 lines
9702 bytes
9702 bytes
From: Arnd Bergmann <arnd@arndb.de>
This error came up on my randconfig tests this week:
drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.c: In function 'npc_cn20k_debugfs_init':
drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.c:392:55: error: 'struct rvu' has no member named 'rvu_dbg'; did you mean 'rvu_dl'?
392 | debugfs_create_file("mcam_layout", 0444, rvu->rvu_dbg.npc,
The problem here is that the rvu_dbg member is hidden in an #ifdef
block, but the reference to it is not.
Remove the #ifdef and waste a few bytes in the structure in this
config. Note that the debugfs_create_file() call end up ignoring
the arguments, so the actual debugfs implementation is still
ignored here.
Fixes: 528530dff56b ("octeontx2-af: npc: cn20k: add debugfs support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
v2: fix accidental build regression
pick a better 'Fixes:' reference
I cannot tell why this showed up now and not earlier, so maybe the
'Fixes' line is misplaced. In randconfig builds, debugfs is almost
always selected by something else, while the octeontx2 driver is
usually disabled, so it does make some sense that this config
would be rate.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
index fb4870cd18e9..a6183674c35f 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
@@ -76,8 +76,6 @@ static inline int rvu_pcifunc_pf_mask(struct pci_dev *pdev)
#define RVU_AFPF 25
-#ifdef CONFIG_DEBUG_FS
-
struct dump_ctx {
int lf;
int id;
@@ -112,7 +110,6 @@ struct rvu_debugfs {
int npa_qsize_id;
int nix_qsize_id;
};
-#endif
struct rvu_work {
struct work_struct work;
@@ -649,9 +646,7 @@ struct rvu {
int mcs_blk_cnt;
int cpt_pf_num;
-#ifdef CONFIG_DEBUG_FS
struct rvu_debugfs rvu_dbg;
-#endif
struct rvu_devlink *rvu_dl;
/* RVU switch implementation over NPC with DMAC rules */
--
2.53.0
Technical Details
Message-ID:
<20261105161945.1658464-1-arnd@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357493-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357493-linux-kernel-netdev=dewy.ru From: arnd@kernel.org (Arnd Bergmann) Newsgroups: linux.kernel.netdev Subject: [PATCH] [v2] net: octeontx2: fix building without DEBUGFS Date: Thu, 5 Nov 2026 17:19:13 +0100 Organization: Usenet Network Message-ID: <20261105161945.1658464-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3678658"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:XbkbxvZBfhmlrUkiD0jbzYhwf3I= sha256:+HwaXvgS2E2ds13UWIDEcelIInhMIHTfAZLeD4lgjL0= sha1:E1nv9QldmzkH/JOWyPeczYxC9E8= sha256:WLBqhaFTKB3I1PYmia9Bxh2LeRek95iclCs6yaKRCuE= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 4443D11301D; Thu, 5 Nov 2026 19:37:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N0ZlaJlUiUta; Thu, 5 Nov 2026 19:37:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357493-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 20211113017; Thu, 5 Nov 2026 19:36:54 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 290AD3E0F2; Thu, 5 Nov 2026 16:20:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793895602; b=tM/mfI2w4HSl0/5D8lw9pTxZOmJgbnqiR+fghlYXzC14tQ4zjhLWcyzu2XKHz8lHLDff 5zTPBgNdyIJk7uUHY1rD3Oslt7m1GWifvB9XiydFyrXDpRLWdmKR1vBObECwhoum2mury BdvTvY+b0xIzt99gq45bb04g/DsVvA/IL8n1Vc8IX2T4htDQFn3qCmfI7sPpTe3XYGG6R KFpP/lOElJvMzrKSczIADeXQuaBAUbf8XK2GvTp4OmmKmqVey0NVvgNC8RYfJmN+/H6CX 0ktI6Oz76utvFwHNMhGDM3e0Hcuw3VGCpr6fNDRHn4JSgVazHqp37DVjmQwKKc4YmyA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793895602; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=EoM2i+eQHRF5VV0GC3rNF+d8cUNjkqLJFgpa8Ucl1/Q=; b=NVddpLU91yNXcb49bEvY3dV65y9qNWBXFFRqvL3H3ihlhLno3hTp3L7rJwdf9xPe5X68 Q8pDxO1YjVcIcdLTIvn4e/tK18kH8OUK2n1o8IAo9Rff/cnykk+NIjAk/CfuQNUcQ363L 2TpyZbbvZilHCOD2A9vFdE2jhzmRNxwGiP6m9xl0MCD/py9Tf0TSeLGqj9zqqrbJZWsJI qxDhb9xYKoc0qtx8L96zhsbXSwCDyUA10WeKSX2Sx696ffapTs4Qx0lBSiyXmZTUkyZpw 13XUPWK8DQKwVG+yD8JZd523iLDLLb0wSj0IQZ0PaBj3eNr3e3EBpoZf+qfE/rezzpA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PHYonUDM; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31523606A333; Thu, 5 Nov 2026 16:20:02 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PHYonUDM X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793895592; b=WFsKpeqSCPAv7DHSfd354i8E4QuUlEJWJSN5k+1NNCXnNFiGwdwABOhnJDGkiZXp1dO0 cZFIdNp+5ee+KKx7buiBT5D9vMJRdGJBNbIaJcAFYFgeeH8LhiXxoeMExKPg+MUpc8Lqg 3/wkbQjNP3D4fuYg89FCA7WCH77uqmYmrGi1xwwBHrI+/KuBFJXkrINsDQoFx9BqAhxEw AHicwVl/lU0HpQ7xr4/lJ9/ScCV0dZ7pZwIiwzkiRNUggyX2/BuLBHmzrv0Jq5JXkYZNX MQ9KyQKdvPY5LC1BjA2lc9f1TJSFxZFoa6yKlWLG/soDd8X3wLodcR5EOm2I9zBjr0w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793895592; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=EoM2i+eQHRF5VV0GC3rNF+d8cUNjkqLJFgpa8Ucl1/Q=; b=nHVSFV1gLaWTdUrNc1r/a/7tBBjcr/B6HZfyjlH/8c4LPe38ENP9H8zgiz6yiPOyc/3D pjrfxl2bo5B3kybDMjrcacqZEnY79yHV/d/F4AI1NDd6dAEnyE50kQK1AHGxQC+u60/zk SqU1RHhu848ahgp5ybYX5rQySUBR0T4lPz2Vr0rwtHEr0CipRcW9Hrhyi3aEL7fVVIyaf nn+s1hwj+aNz6EjE6AN0h4CoP3QNWpXkGPgVZKq/nMavn1os5J66YlQuzyk28oRtirRET Qzro1herT8XtsVh5cR2jV/fxVJzr2sk29uq0kfKtIvjy+B7Y8eaUdf3Q+7j5TSEaxoA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PHYonUDM; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F897606A328; Thu, 5 Nov 2026 16:19:52 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B74A1F000C1; Thu, 5 Nov 2026 16:19:48 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793895592; bh=EoM2i+eQHRF5VV0GC3rNF+d8cUNjkqLJFgpa8Ucl1/Q=; h=From:To:Cc:Subject:Date; b=PHYonUDM/KL47elbybyVujQsXJOhFEzJpnzgmE7hfbhFklkCufM3UwAp7TjlIaSaV qD11zn9Vfx/A7FmyUFDNVgjN27E+KDna1Nx94YyV+QFy7/p5mcMgrXhIs1ZGopEWWV lF3Yx/dOvnmyiIysxyP9vN53rnBRQfrbGdw/IZ4dybeZ8SP+N2dDo6c6P1fnUQzyD+ i1a/7CyJjY2aYeLZuI1Uk5gVW8vvDRUD7IO+3mGX349wKddusCBMPWR9+UCgA1WEku 6YDhX9oOXbVvrx8PbeC4AXxLlAoavcatU+EqDmWOcz6FXDpcGPLEB67UR+wTR/cdDO xzKia5vKu1d0A== X-Cc: Arnd Bergmann <arnd@arndb.de>, Suman Ghosh <sumang@marvell.com>, Hariprasad Kelam <hkelam@marvell.com>, Nitin Shetty J <nshettyj@marvell.com>, Kiran Kumar K <kirankumark@marvell.com>, Michael Bommarito <michael.bommarito@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.53.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list