Skip to contentSkip to conversation

ipvlan: fix building with modular IPV6

PATCH Applied Arnd Bergmann 3 participants 3 messages Feb 26, 2018 – Feb 27, 2018

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

PATCH 1/1 ipvlan: fix building with modular IPV6

We no longer depend on IPV6, but that now causes a link error with CONFIG_IPV6=m and CONFIG_IPVLAN=y:

drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_queue_xmit':
ipvlan_core.c:(.text+0x1440): undefined reference to ip6_route_output_flags' drivers/net/ipvlan/ipvlan_core.o: In function ipvlan_l3_rcv':
ipvlan_core.c:(.text+0x1818): undefined reference to `ip6_route_input_lookup'

This adds back the dependency on IPV6, with the option of building without IPV6, but forcing IPVLAN to be a module when IPV6 is a module.

Fixes 94333fac44d1 ("ipvlan: drop ipv6 dependency")
---
 drivers/net/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/Kconfig +1 -0
index d88b78a17440..08b85215c2be 100644
@@ -149,6 +149,7 @@ config MACVTAP
 config IPVLAN
     tristate "IP-VLAN support"
     depends on INET
+    depends on IPV6 || !IPV6
     depends on NETFILTER
     select NET_L3_MASTER_DEV
     ---help---
Signature · 1 line
2.9.0
#1 lore raw
Quoted 30 lines · Arnd Bergmann

We no longer depend on IPV6, but that now causes a link error with CONFIG_IPV6=m and CONFIG_IPVLAN=y:

drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_queue_xmit':
ipvlan_core.c:(.text+0x1440): undefined reference to ip6_route_output_flags' drivers/net/ipvlan/ipvlan_core.o: In function ipvlan_l3_rcv':
ipvlan_core.c:(.text+0x1818): undefined reference to `ip6_route_input_lookup'

This adds back the dependency on IPV6, with the option of building without IPV6, but forcing IPVLAN to be a module when IPV6 is a module.

Fixes 94333fac44d1 ("ipvlan: drop ipv6 dependency")
---
 drivers/net/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/Kconfig +1 -1
index d88b78a17440..08b85215c2be 100644
@@ -149,6 +149,7 @@ config MACVTAP
 config IPVLAN
     tristate "IP-VLAN support"
     depends on INET
+    depends on IPV6 || !IPV6
     depends on NETFILTER
     select NET_L3_MASTER_DEV
     ---help---
--
Quoted 2 lines

2.9.0

Sorry for that, the fix look very reasonable to me.

Thanks,

Signature · 2 lines
Matteo Croce
per aspera ad upstream
maintainer Applied
#2 lore raw
In reply to Arnd Bergmann

From: Arnd Bergmann <[email protected]>
Date: Mon, 26 Feb 2018 10:41:30 +0100

Quoted 8 lines

We no longer depend on IPV6, but that now causes a link error with CONFIG_IPV6=m and CONFIG_IPVLAN=y:

drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_queue_xmit':
ipvlan_core.c:(.text+0x1440): undefined reference to ip6_route_output_flags' drivers/net/ipvlan/ipvlan_core.o: In function ipvlan_l3_rcv':
ipvlan_core.c:(.text+0x1818): undefined reference to `ip6_route_input_lookup'

Quoted 5 lines

This adds back the dependency on IPV6, with the option of building without IPV6, but forcing IPVLAN to be a module when IPV6 is a module.

Fixes 94333fac44d1 ("ipvlan: drop ipv6 dependency")

Applied, thank you.