[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1398193438-23805-1-git-send-email-mcgrof@do-not-panic.com>
Date: Tue, 22 Apr 2014 12:03:58 -0700
From: "Luis R. Rodriguez" <mcgrof@...not-panic.com>
To: alex.bluesman.smirnov@...il.com, dbaryshkov@...il.com,
linux-zigbee-devel@...ts.sourceforge.net, davem@...emloft.net
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
backports@...r.kernel.org, "Luis R. Rodriguez" <mcgrof@...e.com>,
Johannes Berg <johannes@...solutions.net>
Subject: [PATCH] 6lowpan: nuke net_ieee802154_lowpan() accessor when 6lowpan is disabled
From: "Luis R. Rodriguez" <mcgrof@...e.com>
Johannes noted this is not needed, all of the fragment
accessors don't need CONFIG_NET_NS. This goes test compiled with
CONFIG_BT_6LOWPAN=y and a disabled CONFIG_NET_NS.
CC: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Cc: linux-zigbee-devel@...ts.sourceforge.net
Cc: David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: Johannes Berg <johannes@...solutions.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@...e.com>
---
include/net/net_namespace.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 066cf60..ea3cede 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -386,15 +386,8 @@ net_ieee802154_lowpan(struct net *net)
{
return &net->ieee802154_lowpan;
}
-#else
-static inline struct netns_ieee802154_lowpan *
-net_ieee802154_lowpan(struct net *net)
-{
- return NULL;
-}
#endif
-
/* For callers who don't really care about whether it's IPv4 or IPv6 */
static inline void rt_genid_bump_all(struct net *net)
{
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists