diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-03-24 16:59:21 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-24 15:20:29 -0400 |
commit | ed3e852aa5039fda5a9f53c716c7466913403288 (patch) | |
tree | 54de7bb8a370960dda3ab647aca2f5fca1ea9315 /net/tipc/core.h | |
parent | 66400d543072d6ff6f8df036e3f12f5c154c19cc (diff) | |
download | linux-ed3e852aa5039fda5a9f53c716c7466913403288.tar.gz linux-ed3e852aa5039fda5a9f53c716c7466913403288.tar.bz2 linux-ed3e852aa5039fda5a9f53c716c7466913403288.zip |
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 5f81bd2e5d80 ("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: d0f91938bede ("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>
Diffstat (limited to 'net/tipc/core.h')
0 files changed, 0 insertions, 0 deletions