diff options
author | Alexander Lobakin <alobakin@marvell.com> | 2020-07-06 18:38:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-06 13:18:55 -0700 |
commit | 0dfda108bf3794acc4aeae7b32377dd98fa22a7d (patch) | |
tree | ffbc36bfcf0cc1504d5b7e087314a58d6f54c492 /drivers/net/ethernet/qlogic/qed/qed_sriov.h | |
parent | geneve: move all configuration under struct geneve_config (diff) | |
download | linux-dev-0dfda108bf3794acc4aeae7b32377dd98fa22a7d.tar.xz linux-dev-0dfda108bf3794acc4aeae7b32377dd98fa22a7d.zip |
net: qed: move static iro_arr[] out of header file
Static variables (and functions, unless they're inline) should not
be declared in header files.
Move the static array iro_arr[] from "qed_hsi.h" to the sole place
where it's used, "qed_init_ops.c". This eliminates lots of warnings
(42 of them actually) against W=1+:
In file included from drivers/net/ethernet/qlogic/qed/qed.h:51:0,
from drivers/net/ethernet/qlogic/qed/qed_ooo.c:40:
drivers/net/ethernet/qlogic/qed/qed_hsi.h:4421:18: warning: 'iro_arr'
defined but not used [-Wunused-const-variable=]
static const u32 iro_arr[] = {
^~~~~~~
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_sriov.h')
0 files changed, 0 insertions, 0 deletions