From patchwork Wed Jul 11 07:22:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alex.bluesman.smirnov@gmail.com X-Patchwork-Id: 170380 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 F2A812C01B4 for ; Wed, 11 Jul 2012 17:27:09 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756721Ab2GKH1G (ORCPT ); Wed, 11 Jul 2012 03:27:06 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:35913 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756679Ab2GKH1E (ORCPT ); Wed, 11 Jul 2012 03:27:04 -0400 Received: by mail-wi0-f178.google.com with SMTP id hr14so807533wib.1 for ; Wed, 11 Jul 2012 00:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Iy9ft8anJ00ekUJIyezLAJG5xRUOtiJwTfbGSGCWMCA=; b=LZ6fBO+36JIGGaNVSipbBOlcczTwLTNbip6832gb0zGupZiblqZmK/nnhlaOOcF+VI J3Pbjwjtazur+PeBbQUduYU2WYUa7V4Cl6II1uyTEiT89SmhWCD1SGpZVHJAE/0L3hPh o9Zv6DOaVXYkG9xcXVVL+O2cidWZGu6olD2wILjYRmSMS+tAw4CzMMCTr/2oPdGe9eJ7 8NZ2swSN9FdQHMraLUqtS0j1ZpcaJZTAgoAakYudrQBKfx0Z6qXAfDrI2sJJR57jN1Ng bDe4vPWhE/XI7dlKI23xVmHh3yelK/KxJVAegOL/o5hB0nsU00cgGf52M+jSnQVCMyiz tc3g== Received: by 10.216.137.42 with SMTP id x42mr7582092wei.219.1341991623118; Wed, 11 Jul 2012 00:27:03 -0700 (PDT) Received: from localhost.localdomain ([91.213.169.4]) by mx.google.com with ESMTPS id t7sm3040238wix.6.2012.07.11.00.27.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jul 2012 00:27:02 -0700 (PDT) From: Alexander Smirnov To: davem@davemloft.net, eric.dumazet@gmail.com Cc: netdev@vger.kernel.org, Alexander Smirnov Subject: [PATCH net-next v2 5/7] mac802154: sparse warnings: make symbols static Date: Wed, 11 Jul 2012 11:22:46 +0400 Message-Id: <1341991368-11800-6-git-send-email-alex.bluesman.smirnov@gmail.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1341991368-11800-1-git-send-email-alex.bluesman.smirnov@gmail.com> References: <1341991368-11800-1-git-send-email-alex.bluesman.smirnov@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Make symbols static to avoid the following warning shown up by sparse: warning: symbol ... was not declared. Should it be static? Signed-off-by: Alexander Smirnov --- net/mac802154/mac_cmd.c | 2 +- net/mac802154/mib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac802154/mac_cmd.c b/net/mac802154/mac_cmd.c index 5d9a47b..d8d2770 100644 --- a/net/mac802154/mac_cmd.c +++ b/net/mac802154/mac_cmd.c @@ -55,7 +55,7 @@ static int mac802154_mlme_start_req(struct net_device *dev, return 0; } -struct wpan_phy *mac802154_get_phy(const struct net_device *dev) +static struct wpan_phy *mac802154_get_phy(const struct net_device *dev) { struct mac802154_sub_if_data *priv = netdev_priv(dev); diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c index 5c66b8f..f47781a 100644 --- a/net/mac802154/mib.c +++ b/net/mac802154/mib.c @@ -39,7 +39,7 @@ struct hw_addr_filt_notify_work { unsigned long changed; }; -struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev) +static struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev) { struct mac802154_sub_if_data *priv = netdev_priv(dev);