summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-12-10 21:44:34 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-14 13:17:50 -0800
commit2aa55dccf83d7ca9f1da59ae005426c44fbeb890 (patch)
tree056d3aec08df6c8c34e5de71792f44296a576f69
parent522185d5cb40fafeab807c1ff5ec4ad3a4688b0d (diff)
downloadlinux-2aa55dccf83d7ca9f1da59ae005426c44fbeb890.tar.gz
linux-2aa55dccf83d7ca9f1da59ae005426c44fbeb890.tar.bz2
linux-2aa55dccf83d7ca9f1da59ae005426c44fbeb890.zip
hns3: prevent building without CONFIG_INET
We now get a link failure when CONFIG_INET is disabled, since tcp_gro_complete is unavailable: drivers/net/ethernet/hisilicon/hns3/hns3_enet.o: In function `hns3_set_gro_param': hns3_enet.c:(.text+0x230c): undefined reference to `tcp_gro_complete' Add an explicit CONFIG_INET dependency here to avoid the broken configuration. Fixes: a6d53b97a2e7 ("net: hns3: Adds GRO params to SKB for the stack") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/hisilicon/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig
index 25152715396b..fee4664c9189 100644
--- a/drivers/net/ethernet/hisilicon/Kconfig
+++ b/drivers/net/ethernet/hisilicon/Kconfig
@@ -118,6 +118,7 @@ config HNS3_ENET
tristate "Hisilicon HNS3 Ethernet Device Support"
default m
depends on 64BIT && PCI
+ depends on INET
---help---
This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
family of SoCs. This module depends upon HNAE3 driver to access the HNAE3