From: Arnd Bergmann Date: Mon, 8 Nov 2021 11:12:24 +0000 (+0100) Subject: amt: add IPV6 Kconfig dependency X-Git-Tag: v5.16-rc1~50^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9758aba8542bb43029d077303d05df1d00a8dbb5;p=thirdparty%2Fkernel%2Flinux.git amt: add IPV6 Kconfig dependency 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") Signed-off-by: Arnd Bergmann Acked-by: Taehee Yoo Signed-off-by: David S. Miller --- diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 034dbd487c334..10506a4b66ef8 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -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)