Re: [PATCH] hns3: prevent building without CONFIG_INET

From: David Miller
Date: Fri Dec 14 2018 - 16:20:47 EST


From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Mon, 10 Dec 2018 21:44:34 +0100

> 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@xxxxxxxx>

Applied.