2a32ca138e
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:
|
||
---|---|---|
.. | ||
hclge_cmd.c | ||
hclge_cmd.h | ||
hclge_main.c | ||
hclge_main.h | ||
hclge_mdio.c | ||
hclge_mdio.h | ||
hclge_tm.c | ||
hclge_tm.h | ||
hns3_enet.c | ||
hns3_enet.h | ||
hns3_ethtool.c | ||
Makefile |