ip_tunnel: fix building with NET_IP_TUNNEL=m
Subsystems (2)
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.
--- net/mpls/Kconfig | 1 + 1 file changed, 1 insertion(+)
net/mpls/Kconfig +1 -0
@@ -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
I forgot to Cc Amine, sorry.
Quoted 31 lines · Arnd Bergmann
When
af_mplsis 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
Kconfigstatement 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")Signed-off-by Arnd Bergmann <[email protected]>--- net/mpls/Kconfig | 1 + 1 file changed, 1 insertion(+)net/mpls/Kconfig +1
-1@@ -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
Amine Kherbouche
Acked-byHi Arnd,
Quoted 31 lines · Arnd Bergmann
I forgot to Cc Amine, sorry.
Quoted 28 lines · Arnd Bergmann
When
af_mplsis 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
Kconfigstatement 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")Signed-off-by Arnd Bergmann <[email protected]>--- net/mpls/Kconfig | 1 + 1 file changed, 1 insertion(+)net/mpls/Kconfig +1
-0@@ -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
From: Arnd Bergmann <[email protected]>
Date: Wed, 11 Oct 2017 15:55:31 +0200
Quoted 6 lines
When
af_mplsis 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
Kconfigstatement 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")Signed-off-by Arnd Bergmann <[email protected]>
Applied, thanks Arnd.