linux/drivers/net/ethernet/hisilicon/hns3/hns3pf
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
..
hclge_cmd.c
hclge_cmd.h
hclge_main.c hns3: fix unused function warning 2017-08-07 11:23:48 -07:00
hclge_main.h net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support 2017-08-03 15:08:17 -07:00
hclge_mdio.c net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC 2017-08-03 15:08:17 -07:00
hclge_mdio.h net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC 2017-08-03 15:08:17 -07:00
hclge_tm.c net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver 2017-08-03 15:08:17 -07:00
hclge_tm.h net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver 2017-08-03 15:08:17 -07:00
hns3_enet.c net: sched: get rid of struct tc_to_netdev 2017-08-07 09:42:37 -07:00
hns3_enet.h
hns3_ethtool.c net: hns3: Add Ethtool support to HNS3 driver 2017-08-03 15:08:18 -07:00
Makefile net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS 2017-08-03 15:08:18 -07:00