]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitea562283d19c95ed5d3d1b4f9bb2588c38806f40
tree320e4f30f33a2f0aed7f7d1fce352d899e710b40
parent3c42dba0a499291469c2d2d2bebbcbfbb03a1e2d
hns3: prevent building without CONFIG_INET

BugLink: https://bugs.launchpad.net/bugs/1810457
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>
(cherry picked from commit 2aa55dccf83d7ca9f1da59ae005426c44fbeb890)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/Kconfig