Re: [PATCH] net: qed: make 'qed_ll2_ops_pass' as __maybe_unused

From: patchwork-bot+netdevbpf
Date: Thu Feb 27 2025 - 20:28:55 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 25 Feb 2025 21:09:23 +0100 you wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> gcc warns about unused const variables even in header files when
> building with W=1:
>
> In file included from include/linux/qed/qed_rdma_if.h:14,
> from drivers/net/ethernet/qlogic/qed/qed_rdma.h:16,
> from drivers/net/ethernet/qlogic/qed/qed_cxt.c:23:
> include/linux/qed/qed_ll2_if.h:270:33: error: 'qed_ll2_ops_pass' defined but not used [-Werror=unused-const-variable=]
> 270 | static const struct qed_ll2_ops qed_ll2_ops_pass = {
>
> [...]

Here is the summary with links:
- net: qed: make 'qed_ll2_ops_pass' as __maybe_unused
https://git.kernel.org/netdev/net-next/c/f8131f4cc5bd

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html