linux/include/linux/qed
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>
History 2025-02-27 16:52:41 -08:00
..
common_hsi.h qed: Update common_hsi for FW ver 8.59.1.0 2021-10-04 12:55:49 +01:00
eth_common.h qed: Update qed_hsi.h for fw 8.59.1.0 2021-10-04 12:55:49 +01:00
fcoe_common.h qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
iscsi_common.h qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
iwarp_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
nvmetcp_common.h qed: Remove e4_ and _e4 from FW HSI 2021-10-04 12:55:48 +01:00
qed_chain.h qed: Fix kernel-doc warnings 2021-10-04 12:55:48 +01:00
qed_eth_if.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
qed_fcoe_if.h qed/qede: Remove unused declarations 2023-08-23 08:21:37 +01:00
qed_if.h qed*: esl priv flag support through ethtool 2021-12-03 18:24:21 -08:00
qed_iov_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_iscsi_if.h net: qed: fix typos in comments 2022-05-22 20:44:29 +01:00
qed_ll2_if.h net: qed: make 'qed_ll2_ops_pass' as __maybe_unused 2025-02-27 16:52:41 -08:00
qed_nvmetcp_if.h net: qed: fix typos in comments 2022-05-22 20:44:29 +01:00
qed_rdma_if.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
qede_rdma.h qede: Notify qedr when mtu has changed 2020-09-11 10:24:54 -03:00
rdma_common.h qed: Update qed_hsi.h for fw 8.59.1.0 2021-10-04 12:55:49 +01:00
roce_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
storage_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
tcp_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00