Skip to contentSkip to conversation

ip_tunnel: fix building with NET_IP_TUNNEL=m

PATCH Applied Arnd Bergmann 3 participants 4 messages Oct 11, 2017 – Oct 12, 2017

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

PATCH 1/1 ip_tunnel: fix building with NET_IP_TUNNEL=m

When af_mpls is built-in but the tunnel support is a module, we get a link failure:

net/mpls/af_mpls.o: In function `mpls_init':
af_mpls.c:(.init.text+0xdc): undefined reference to `ip_tunnel_encap_add_ops'

This adds a Kconfig statement to prevent the broken configuration and force mpls to be a module as well in this case.

Fixes bdc476413dcd ("ip_tunnel: add mpls over gre support")
---
 net/mpls/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/mpls/Kconfig +1 -0
index 5c467ef97311..801ea9098387 100644
@@ -24,6 +24,7 @@ config NET_MPLS_GSO
 
 config MPLS_ROUTING
 	tristate "MPLS: routing support"
+	depends on NET_IP_TUNNEL || NET_IP_TUNNEL=n
 	---help---
 	 Add support for forwarding of mpls packets.
 
Signature · 1 line
2.9.0
#1 lore raw

I forgot to Cc Amine, sorry.

Quoted 31 lines · Arnd Bergmann

When af_mpls is built-in but the tunnel support is a module, we get a link failure:

net/mpls/af_mpls.o: In function `mpls_init':
af_mpls.c:(.init.text+0xdc): undefined reference to `ip_tunnel_encap_add_ops'

This adds a Kconfig statement to prevent the broken configuration and force mpls to be a module as well in this case.

Fixes bdc476413dcd ("ip_tunnel: add mpls over gre support")
---
 net/mpls/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/mpls/Kconfig +1 -1
index 5c467ef97311..801ea9098387 100644
@@ -24,6 +24,7 @@ config NET_MPLS_GSO
 
 config MPLS_ROUTING
        tristate "MPLS: routing support"
+       depends on NET_IP_TUNNEL || NET_IP_TUNNEL=n
        ---help---
         Add support for forwarding of mpls packets.
 
--

2.9.0

#2 lore raw

Hi Arnd,

Quoted 31 lines · Arnd Bergmann

I forgot to Cc Amine, sorry.

Quoted 28 lines · Arnd Bergmann

When af_mpls is built-in but the tunnel support is a module, we get a link failure:

net/mpls/af_mpls.o: In function `mpls_init':
af_mpls.c:(.init.text+0xdc): undefined reference to `ip_tunnel_encap_add_ops'

This adds a Kconfig statement to prevent the broken configuration and force mpls to be a module as well in this case.

Fixes bdc476413dcd ("ip_tunnel: add mpls over gre support")
---
 net/mpls/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/mpls/Kconfig +1 -0
index 5c467ef97311..801ea9098387 100644
@@ -24,6 +24,7 @@ config NET_MPLS_GSO
 
 config MPLS_ROUTING
        tristate "MPLS: routing support"
+       depends on NET_IP_TUNNEL || NET_IP_TUNNEL=n
        ---help---
         Add support for forwarding of mpls packets.
 
Quoted 3 lines
Quoted 3 lines

--
2.9.0

maintainer Applied
#3 lore raw
In reply to Arnd Bergmann

From: Arnd Bergmann <[email protected]>
Date: Wed, 11 Oct 2017 15:55:31 +0200

Quoted 6 lines

When af_mpls is built-in but the tunnel support is a module, we get a link failure:

net/mpls/af_mpls.o: In function `mpls_init':
af_mpls.c:(.init.text+0xdc): undefined reference to `ip_tunnel_encap_add_ops'

Quoted 6 lines

This adds a Kconfig statement to prevent the broken configuration and force mpls to be a module as well in this case.

Fixes bdc476413dcd ("ip_tunnel: add mpls over gre support")

Applied, thanks Arnd.