Re: [PATCH] [v2] net: octeontx2: fix building without DEBUGFS
From: Ratheesh Kannoth
Date: Fri Nov 06 2026 - 03:12:58 EST
On 2026-11-05 at 21:49:13, Arnd Bergmann (arnd@xxxxxxxxxx) wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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@xxxxxxxx>
Acked-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>