Skip to contentSkip to conversation

geneve: fix build with modular IPV6

PATCH Applied Tobias Regnery 2 participants 2 messages Apr 26, 2018 – Apr 27, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/Kconfig +1 -0
index 891846655000..a029b27fd002 100644
@@ -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---
Signature · 1 line
2.17.0
maintainer Applied
#1 lore raw

From: Tobias Regnery <[email protected]>
Date: Thu, 26 Apr 2018 12:36:36 +0200

Quoted 4 lines

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:

Quoted 8 lines

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")

Applied, thank you.