[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1437549003-35563-1-git-send-email-roopa@cumulusnetworks.com>
Date: Wed, 22 Jul 2015 00:10:03 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org
Subject: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output
From: Roopa Prabhu <roopa@...ulusnetworks.com>
seen with CONFIG_IPV6 disabled. Wrap the code
around IS_ENABLED(CONFIG_IPV6)
Reported-by: kbuild test robot <fengguang.wu@...el.com>
Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists