From patchwork Tue Apr 22 19:03:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luis R. Rodriguez" X-Patchwork-Id: 341442 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 59324140099 for ; Wed, 23 Apr 2014 05:05:00 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752491AbaDVTEI (ORCPT ); Tue, 22 Apr 2014 15:04:08 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33452 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbaDVTEF (ORCPT ); Tue, 22 Apr 2014 15:04:05 -0400 Received: by mail-pa0-f44.google.com with SMTP id bj1so5253331pad.17 for ; Tue, 22 Apr 2014 12:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=OOlR4rKv3DoG+aloYI7m/ZLd/znPEXu6eylajI/WFLQ=; b=FQOxi6NPfEnuvIVDJ+PCJ1R+1OgPLmlQ1Yr8C13Miu8WsvrtAgSkuhSs8xMKpT5mVl k6EHybzuHPVRvMiQhvnC+KieNfhZbhaGZKeripW+kNb2RFD4mDCSzm8EbJV3Cb0dJato fnuaKKsYBVV3/hzAu+Bsn4CF8eIjS4hA36Gah++l1OU3lFY+zFpUat53u4YGlCCrSG9D bTwE8bGfOJeOQtfu9tF+NwU2qien+d2TlFdGpJqBfpDCm5fnoZf10ByDMELfFxg+l0Rc xPL7GAmzmZ96qTme9d406axpnKVEP6m2Wgp4/5NviTuhzK/MjpWfFpQpZZ/VxgpDbbfC fIfw== X-Received: by 10.68.135.137 with SMTP id ps9mr5305888pbb.160.1398193444076; Tue, 22 Apr 2014 12:04:04 -0700 (PDT) Received: from mcgrof@gmail.com (c-98-234-145-61.hsd1.ca.comcast.net. [98.234.145.61]) by mx.google.com with ESMTPSA id vb7sm86573690pbc.13.2014.04.22.12.04.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Apr 2014 12:04:02 -0700 (PDT) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Tue, 22 Apr 2014 12:03:58 -0700 From: "Luis R. Rodriguez" To: alex.bluesman.smirnov@gmail.com, dbaryshkov@gmail.com, linux-zigbee-devel@lists.sourceforge.net, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, backports@vger.kernel.org, "Luis R. Rodriguez" , Johannes Berg Subject: [PATCH] 6lowpan: nuke net_ieee802154_lowpan() accessor when 6lowpan is disabled Date: Tue, 22 Apr 2014 12:03:58 -0700 Message-Id: <1398193438-23805-1-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 1.9.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: "Luis R. Rodriguez" 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 Cc: Dmitry Eremin-Solenikov Cc: linux-zigbee-devel@lists.sourceforge.net Cc: David S. Miller" Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Johannes Berg Signed-off-by: Luis R. Rodriguez --- 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) {