WSL2-Linux-Kernel/drivers/net/ethernet/neterion/vxge
Arnd Bergmann 57e7c8cef2 net: vxge: avoid unused function warnings
When CONFIG_PCI_MSI is disabled, we get warnings about unused functions
in the vxge driver:

drivers/net/ethernet/neterion/vxge/vxge-main.c:2121:13: warning: 'adaptive_coalesce_tx_interrupts' defined but not used [-Wunused-function]
drivers/net/ethernet/neterion/vxge/vxge-main.c:2149:13: warning: 'adaptive_coalesce_rx_interrupts' defined but not used [-Wunused-function]

We could add another #ifdef here, but it's nicer to avoid those warnings
for good by converting the existing #ifdef to if(IS_ENABLED()), which has
the same effect but provides better compile-time coverage in general,
and lets the compiler understand better when the function is intentionally
unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-29 20:33:39 -08:00
..
Makefile
vxge-config.c vxge: fix sparse warning 2015-02-05 16:07:06 -08:00
vxge-config.h vxge/s2io: remove __dev* attributes 2012-12-03 11:16:44 -08:00
vxge-ethtool.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
vxge-ethtool.h vxge: Add const to ethtool_driver_stats_keys 2015-04-01 15:35:14 -04:00
vxge-main.c net: vxge: avoid unused function warnings 2016-01-29 20:33:39 -08:00
vxge-main.h vxge: make local functions static 2014-01-16 16:22:54 -08:00
vxge-reg.h
vxge-traffic.c vxge: use swap() in vxge_hw_channel_dtr_alloc() 2015-06-11 15:19:41 -07:00
vxge-traffic.h vxge: make local functions static 2014-01-16 16:22:54 -08:00
vxge-version.h