]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: Fix build with CONFIG_IPV6=m
authorJoe Stringer <joe@wand.net.nz>
Wed, 3 Oct 2018 05:32:26 +0000 (22:32 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 4 Oct 2018 08:32:56 +0000 (10:32 +0200)
commit68d38bbfca913213c964787ca80d882f0d8b2b5b
tree1da142e0c4a588b40dafae46f5f426080e3dea75
parente6b1b40762e486d5a96a29998eb399a5ea80a9bd
net: core: Fix build with CONFIG_IPV6=m

Stephen Rothwell reports the following link failure with IPv6 as module:

  x86_64-linux-gnu-ld: net/core/filter.o: in function `sk_lookup':
  (.text+0x19219): undefined reference to `__udp6_lib_lookup'

Fix the build by only enabling the IPv6 socket lookup if IPv6 support is
compiled into the kernel.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c