Skip to content

Commit

Permalink
udp_diag: Make it module when ipv6 is a module
Browse files Browse the repository at this point in the history
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 <eric.dumazet@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Dec 10, 2011
1 parent 507dd79 commit b872a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b872a23

Please sign in to comment.