summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@marvell.com>2020-07-06 18:38:13 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-06 23:18:55 +0300
commit0dfda108bf3794acc4aeae7b32377dd98fa22a7d (patch)
treeffbc36bfcf0cc1504d5b7e087314a58d6f54c492 /tools/perf/scripts/python/export-to-postgresql.py
parent9e06e8596bc87cad9dd18869a1b1b42132170dd9 (diff)
downloadlinux-0dfda108bf3794acc4aeae7b32377dd98fa22a7d.tar.xz
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions