linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Arnd Bergmann 2a32ca138e hns3: fix unused function warning
Without CONFIG_PCI_IOV, we get a harmless warning about an
unused function:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2273:13: error: 'hclge_disable_sriov' defined but not used [-Werror=unused-function]

The #ifdefs in this driver are obviously wrong, so this just
removes them and uses an IS_ENABLED() check that does the same
thing correctly in a more readable way.

Fixes: 46a3df9f97 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-07 11:23:48 -07:00
..
hns3pf hns3: fix unused function warning 2017-08-07 11:23:48 -07:00
hnae3.c net: hns3: Add support of the HNAE3 framework 2017-08-03 15:08:17 -07:00
hnae3.h net: hns3: Add support of the HNAE3 framework 2017-08-03 15:08:17 -07:00
Makefile net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS 2017-08-03 15:08:18 -07:00