Thread (2 messages) 2 messages, 2 authors, 2017-08-07

Re: [PATCH] hns3: fix unused function warning

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-08-07 18:24:03
Also in: lkml

From: Arnd Bergmann <arnd@arndb.de>
Date: Mon,  7 Aug 2017 12:41:53 +0200
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: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help