diff options
| author | Arnd Bergmann <[email protected]> | 2025-02-25 20:09:23 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-02-28 00:52:41 +0000 |
| commit | f8131f4cc5bda6154d81ee5bafe3db7e2e72a89c (patch) | |
| tree | 5cbe7aa5152426861c7fdf7f3fbd95f0bc55c648 /drivers/net/netkit.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
| download | kernel-f8131f4cc5bda6154d81ee5bafe3db7e2e72a89c.tar.gz kernel-f8131f4cc5bda6154d81ee5bafe3db7e2e72a89c.zip | |
net: qed: make 'qed_ll2_ops_pass' as __maybe_unused
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 = {
This one is intentional, so mark it as __maybe_unused to it can be
included from a file that doesn't use this variable.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Simon Horman <[email protected]> # build-tested
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
