From: David Miller Subject: Re: [PATCH] hns3: prevent building without CONFIG_INET Date: Fri, 14 Dec 2018 13:20:44 -0800 (PST) Message-ID: <20181214.132044.183096780468259380.davem@davemloft.net> References: <20181210204448.2338398-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, lipeng321@huawei.com, tanhuazhong@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: arnd@arndb.de Return-path: In-Reply-To: <20181210204448.2338398-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Arnd Bergmann 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 Applied.