]> git.baikalelectronics.ru Git - kernel.git/commit
hns3: prevent building without CONFIG_INET
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:44:34 +0000 (21:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 21:17:50 +0000 (13:17 -0800)
commit0840670b130db3b786cab596f0f0af5f68d68c5c
tree056d3aec08df6c8c34e5de71792f44296a576f69
parentbdfbf87bf60b4da38e312d65917541ddab3a1bde
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: 1228c921ea1d ("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>
drivers/net/ethernet/hisilicon/Kconfig