OSDN Git Service

af_mpls: fix undefined reference to ip6_route_output
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 30 Jul 2015 20:34:54 +0000 (13:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 22:21:30 +0000 (15:21 -0700)
commitbf21563acc1de2391d21ac2141c3471aa4815c1a
tree4cf1e6e3ec1d76e730778ec0d8b2a7efbe6b9499
parent343d60aada5a358ca186d6e9e353230379c426d8
af_mpls: fix undefined reference to ip6_route_output

Undefined reference to ip6_route_output and ip_route_output
was reported with CONFIG_INET=n and CONFIG_IPV6=n.

This patch uses ipv6_stub_impl.ipv6_dst_lookup instead of
ip6_route_output. And wraps affected code under
IS_ENABLED(CONFIG_INET) and IS_ENABLED(CONFIG_IPV6).

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c