From: Tobias Regnery Date: Thu, 26 Apr 2018 10:36:36 +0000 (+0200) Subject: geneve: fix build with modular IPV6 X-Git-Tag: v5.15~8692^2~368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=094be0927ff3e802b3f26b7f66c563a4b93a4ab5;p=platform%2Fkernel%2Flinux-starfive.git geneve: fix build with modular IPV6 Commit c40e89fd358e ("geneve: configure MTU based on a lower device") added an IS_ENABLED(CONFIG_IPV6) to geneve, leading to the following link error with CONFIG_GENEVE=y and CONFIG_IPV6=m: drivers/net/geneve.o: In function `geneve_link_config': geneve.c:(.text+0x14c): undefined reference to `rt6_lookup' Fix this by adding a Kconfig dependency and forcing GENEVE to be a module when IPV6 is a module. Fixes: c40e89fd358e ("geneve: configure MTU based on a lower device") Signed-off-by: Tobias Regnery Signed-off-by: David S. Miller --- diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 8918466..a029b27 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -198,6 +198,7 @@ config VXLAN config GENEVE tristate "Generic Network Virtualization Encapsulation" depends on INET && NET_UDP_TUNNEL + depends on IPV6 || !IPV6 select NET_IP_TUNNEL select GRO_CELLS ---help---