]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3d0ab4659c91fde59c87cecc050b3afe489dfdd
tree4cf1e6e3ec1d76e730778ec0d8b2a7efbe6b9499
parentbfd06a2057c205c196a3351c9b674e39e0789db1
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