Re: [Linux-zigbee-devel] [PATCH 1/3] 6lowpan: add helper to get 6lowpan namespace

2014-04-22 Thread Luis R. Rodriguez
On Tue, Apr 22, 2014 at 11:49 AM, Alexander Aring wrote: > On Tue, Apr 22, 2014 at 08:45:15PM +0200, Johannes Berg wrote: >> On Tue, 2014-04-22 at 19:58 +0200, Luis R. Rodriguez wrote: >> >> > > > > +#if IS_ENABLED(CONFIG_IEEE802154_6LOWPAN) >> > > > > [...] >> > > > > +#else >> > > > > +static in

Re: [Linux-zigbee-devel] [PATCH 1/3] 6lowpan: add helper to get 6lowpan namespace

2014-04-22 Thread Luis R. Rodriguez
On Tue, Apr 22, 2014 at 11:45 AM, Johannes Berg wrote: > On Tue, 2014-04-22 at 19:58 +0200, Luis R. Rodriguez wrote: > >> > > > +#if IS_ENABLED(CONFIG_IEEE802154_6LOWPAN) >> > > > [...] >> > > > +#else >> > > > +static inline struct netns_ieee802154_lowpan * >> > > > +net_ieee802154_lowpan(struct

Re: [Linux-zigbee-devel] [PATCH 1/3] 6lowpan: add helper to get 6lowpan namespace

2014-04-22 Thread Johannes Berg
On Thu, 2014-04-17 at 18:22 -0700, Luis R. Rodriguez wrote: > +#if IS_ENABLED(CONFIG_IEEE802154_6LOWPAN) > [...] > +#else > +static inline struct netns_ieee802154_lowpan * > +net_ieee802154_lowpan(struct net *net) > +{ > + return NULL; > +} > +#endif Why would that be needed? If nobody compil

[Linux-zigbee-devel] [PATCH 1/3] 6lowpan: add helper to get 6lowpan namespace

2014-04-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This will simplify the new reassembly backport with no code changes being required. CC: Alexander Smirnov Cc: Dmitry Eremin-Solenikov Cc: linux-zigbee-devel@lists.sourceforge.net Cc: David S. Miller" Cc: net...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Signed-