Files
linux-stable-mirror/include/linux
Arnd Bergmann f8131f4cc5 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 <arnd@arndb.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org> # build-tested
Link: https://patch.msgid.link/20250225200926.4057723-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-27 16:52:41 -08:00
..
2025-02-21 16:45:21 -08:00
2025-02-25 18:31:04 -08:00
2025-01-25 20:22:31 -08:00
2025-02-04 11:27:45 -05:00
2025-02-25 15:07:24 -05:00
2025-01-25 20:22:42 -08:00
2025-02-10 09:22:32 +01:00
2025-02-24 19:14:31 -08:00
2025-01-29 13:32:23 -08:00
2025-01-29 09:04:28 -08:00