aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2020-07-06 18:38:13 +0300
committerDavid S. Miller <[email protected]>2020-07-06 13:18:55 -0700
commit0dfda108bf3794acc4aeae7b32377dd98fa22a7d (patch)
treeffbc36bfcf0cc1504d5b7e087314a58d6f54c492 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent9e06e8596bc87cad9dd18869a1b1b42132170dd9 (diff)
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 <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions