diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-29 14:39:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-30 07:33:39 +0300 |
commit | 57e7c8cef224af166b8ec932b5e383641418c005 (patch) | |
tree | 78680efec58123f12cccd9f91a2f0314d98ae606 /drivers/net/eql.c | |
parent | 1f820f538f7396db7fd40684b9c3620816acc5a3 (diff) | |
download | linux-57e7c8cef224af166b8ec932b5e383641418c005.tar.xz |
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>
Diffstat (limited to 'drivers/net/eql.c')
0 files changed, 0 insertions, 0 deletions