Skip to contentSkip to conversation

amt: add IPV6 Kconfig dependency

PATCH Applied Arnd Bergmann 3 participants 3 messages Nov 8, 2021 – Nov 9, 2021

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

PATCH 1/1 amt: add IPV6 Kconfig dependency

From: Arnd Bergmann <[email protected]>

This driver cannot be built-in if IPV6 is a loadable module:

x86_64-linux-ld: drivers/net/amt.o: in function `amt_build_mld_gq':
amt.c:(.text+0x2e7d): undefined reference to `ipv6_dev_get_saddr'

Add the idiomatic Kconfig dependency that all such modules have.

Fixes b9022b53adad ("amt: add control plane of amt interface")
---
 drivers/net/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/Kconfig +1 -0
index 034dbd487c33..10506a4b66ef 100644
@@ -294,6 +294,7 @@ config GTP
 config AMT
 	tristate "Automatic Multicast Tunneling (AMT)"
 	depends on INET && IP_MULTICAST
+	depends on IPV6 || !IPV6
 	select NET_UDP_TUNNEL
 	help
 	  This allows one to create AMT(Automatic Multicast Tunneling)
Signature · 1 line
2.29.2
Acked-by on v1 1/1
#1 lore raw

Hi Arnd,

Quoted 22 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

This driver cannot be built-in if IPV6 is a loadable module:

x86_64-linux-ld: drivers/net/amt.o: in function `amt_build_mld_gq':
amt.c:(.text+0x2e7d): undefined reference to `ipv6_dev_get_saddr'

Add the idiomatic Kconfig dependency that all such modules have.

Fixes b9022b53adad ("amt: add control plane of amt interface")
---
  drivers/net/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/net/Kconfig +0 -0
index 034dbd487c33..10506a4b66ef 100644

drivers/net/Kconfig config GTP · line 300

Quoted 7 lines
drivers/net/Kconfig +1 -0
@@ -294,6 +294,7 @@ config GTP
  config AMT
  	tristate "Automatic Multicast Tunneling (AMT)"
  	depends on INET && IP_MULTICAST
+	depends on IPV6 || !IPV6
  	select NET_UDP_TUNNEL
  	help
  	  This allows one to create AMT(Automatic Multicast Tunneling)
#2 lore raw
In reply to Arnd Bergmann
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Mon, 8 Nov 2021 12:12:24 +0100 you wrote:

From: Arnd Bergmann <[email protected]>

This driver cannot be built-in if IPV6 is a loadable module:

x86_64-linux-ld: drivers/net/amt.o: in function `amt_build_mld_gq':
amt.c:(.text+0x2e7d): undefined reference to `ipv6_dev_get_saddr'

[...]

Here is the summary with links:
- amt: add IPV6 Kconfig dependency

    https://git.kernel.org/netdev/net/c/9758aba8542b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html