From: Roopa Prabhu <ro...@cumulusnetworks.com> seen with CONFIG_IPV6 disabled. Wrap the code around IS_ENABLED(CONFIG_IPV6)
Reported-by: kbuild test robot <fengguang...@intel.com> Signed-off-by: Roopa Prabhu <ro...@cumulusnetworks.com> --- net/mpls/af_mpls.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 49f1b0e..040dfff 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c @@ -351,6 +351,7 @@ errout: return dev; } +#if IS_ENABLED(CONFIG_IPV6) static struct net_device *inet6_fib_lookup_dev(struct net *net, void *addr) { struct net_device *dev = NULL; @@ -371,6 +372,12 @@ errout: return dev; } +#else +static struct net_device *inet6_fib_lookup_dev(struct net *net, void *addr) +{ + return NULL; +} +#endif static struct net_device *find_outdev(struct net *net, struct mpls_route_config *cfg) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html