]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix compile error when IPV6=m and TIPC=y
authorYing Xue <ying.xue@windriver.com>
Tue, 24 Mar 2015 08:59:21 +0000 (16:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2015 19:20:29 +0000 (15:20 -0400)
commit06931ef28669b9c4470cc69182b0dd525986afcb
tree54de7bb8a370960dda3ab647aca2f5fca1ea9315
parent5da75248a01f1350dffb04e8f46ebd415250c157
tipc: fix compile error when IPV6=m and TIPC=y

When IPV6=m and TIPC=y, below error will appear during building kernel
image:

net/tipc/udp_media.c:196:
undefined reference to `ip6_dst_lookup'
make: *** [vmlinux] Error 1

As ip6_dst_lookup() is implemented in IPV6 and IPV6 is compiled as
module, ip6_dst_lookup() is not built-in core kernel image. As a
result, compiler cannot find 'ip6_dst_lookup' reference while
compiling TIPC code into core kernel image.

But with the method introduced by commit d22e5150283a ("ipv6: export a
stub for IPv6 symbols used by vxlan"), we can avoid the compile error
through "ipv6_stub" pointer to access ip6_dst_lookup().

Fixes: 38e17eaa07d7 ("tipc: add ip/udp media type")
Suggested-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c