From: Pavel Emelyanov Date: Fri, 9 Dec 2011 23:33:43 +0000 (+0000) Subject: udp_diag: Make it module when ipv6 is a module X-Git-Tag: v3.3-rc1~182^2~266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b872a2371ffd13e6d83423ef621a707df4c158ac;p=profile%2Fivi%2Fkernel-x86-ivi.git udp_diag: Make it module when ipv6 is a module Eric Dumazet reported, that when inet_diag is built-in the udp_diag also goes built-in and when ipv6 is a module the udp6 lookup symbol is not found. LD .tmp_vmlinux1 net/built-in.o: In function `udp_dump_one': udp_diag.c:(.text+0xa2b40): undefined reference to `__udp6_lib_lookup' make: *** [.tmp_vmlinux1] Erreur 1 Fix this by making udp diag build mode depend on both -- inet diag and ipv6. Reported-by: Eric Dumazet Signed-off-by: Pavel Emelyanov Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig index a51e33e..1a8f93b 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig @@ -411,7 +411,7 @@ config INET_TCP_DIAG config INET_UDP_DIAG depends on INET_DIAG - def_tristate INET_DIAG + def_tristate INET_DIAG && IPV6 menuconfig TCP_CONG_ADVANCED bool "TCP: advanced congestion control"