linux/drivers/net/ethernet/chelsio
Arnd Bergmann 7c70c4f8b2 cxgb4: unexport cxgb4_dcb_enabled
A recent cleanup marked cxgb4_dcb_enabled as 'static', which is correct, but this ignored
how the symbol is also exported. In addition, the export can be compiled out when modules
are disabled, causing a harmless compiler warning in configurations for which it is not
used at all:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:282:12: error: 'cxgb4_dcb_enabled' defined but not used [-Werror=unused-function]

This removes the export and moves the function into the correct #ifdef so we only build
it when there are users.

Fixes: 50935857f8 ("cxgb4: mark symbols static where possible")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-03 01:33:15 -04:00
..
cxgb drivers: net: remove NETDEV_TX_LOCKED 2016-04-26 15:53:05 -04:00
cxgb3 cxgb3: fix out of bounds read 2016-05-01 20:59:43 -04:00
cxgb4 cxgb4: unexport cxgb4_dcb_enabled 2016-10-03 01:33:15 -04:00
cxgb4vf Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-09-23 06:46:57 -04:00
libcxgb libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_rx_data_ack() 2016-09-15 20:49:20 -04:00
Kconfig libcxgb: add library module for Chelsio drivers 2016-07-25 10:31:08 -07:00
Makefile libcxgb: add library module for Chelsio drivers 2016-07-25 10:31:08 -07:00