diff options
author | Alexander Lobakin <alobakin@marvell.com> | 2020-07-06 17:38:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-06 22:18:55 +0200 |
commit | c6b7314d53874d5d9ea7f43bd774c6d4ee596bdd (patch) | |
tree | 50740e95ccb5fa3a6595c7fd6435e2bd69d92233 /drivers/net/ethernet/qlogic/qed/qed_ptp.c | |
parent | net: qed: move static iro_arr[] out of header file (diff) | |
download | linux-c6b7314d53874d5d9ea7f43bd774c6d4ee596bdd.tar.xz linux-c6b7314d53874d5d9ea7f43bd774c6d4ee596bdd.zip |
net: qed: cleanup global structs declarations
Fix several sparse warnings by moving structs declarations into
the corresponding header files:
drivers/net/ethernet/qlogic/qed/qed_dcbx.c:2402:32: warning:
symbol 'qed_dcbnl_ops_pass' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_ll2.c:2754:26: warning: symbol
'qed_ll2_ops_pass' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_ptp.c:449:30: warning: symbol
'qed_ptp_ops_pass' was not declared. Should it be static?
drivers/net/ethernet/qlogic/qed/qed_sriov.c:5265:29: warning:
symbol 'qed_iov_ops_pass' was not declared. Should it be static?
(some of them were declared twice in different header files)
Also make qed_hw_err_type_descr[] const while at it.
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_ptp.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_ptp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_ptp.c b/drivers/net/ethernet/qlogic/qed/qed_ptp.c index 3bd2f8c961c9..2c62d732e5c2 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_ptp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ptp.c @@ -10,6 +10,7 @@ #include "qed_hw.h" #include "qed_l2.h" #include "qed_mcp.h" +#include "qed_ptp.h" #include "qed_reg_addr.h" /* 16 nano second time quantas to wait before making a Drift adjustment */ |