]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: unexport cxgb4_dcb_enabled
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Sep 2016 16:15:33 +0000 (18:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2016 05:33:15 +0000 (01:33 -0400)
commit799d00e49944363a6c0efbe5c6c7cb946a965e29
tree2262c1c256a12de14f46cf27a0f9d6dbb84542c9
parent2a5cacc9e6d0e61b983ca15d37893efff98e10bb
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: 980f5a31d7a3 ("cxgb4: mark symbols static where possible")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c