]> 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)
commit017d4ba6b8681f4cbe535e01915e931fdfb7f801
tree4cf1e6e3ec1d76e730778ec0d8b2a7efbe6b9499
parenta1f1d537e803d0e95b35d8cd3af522a3d4c97ac1
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