From patchwork Sun Feb 9 14:56:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika Kheria X-Patchwork-Id: 318608 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 570A52C00A4 for ; Mon, 10 Feb 2014 01:56:56 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbaBIO4i (ORCPT ); Sun, 9 Feb 2014 09:56:38 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:47121 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751948AbaBIO4h (ORCPT ); Sun, 9 Feb 2014 09:56:37 -0500 Received: by mail-pa0-f49.google.com with SMTP id hz1so5115739pad.22 for ; Sun, 09 Feb 2014 06:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=HVtSNpELFn4igcKdAyCVEX9HxNsIzz1CBIXJB3RS9f0=; b=Irki+Zts/IAYgDCTa/UJ1V4n23AxwtIuR9xbZxZbVBZc1h4/t5TuRx8Z1AYlTb7AfI OI5id7O/72wavGO63LQoEVc3yv8E3M+9lVDwhmndR6LVH/ZH/3QoIZjrBAZRVLB8qLFW jBEBNifcd1+jDenefA8EeQ8MKNJ4SpnuREiMdjFodheTzRZhYY31Jz3ktdvfkGMaSooQ wPsAJAAziOaRHGfIyO9ZBiYVWHNqvrkAAZFU3ETwu4giGxVOuc2g9A1F9LGH+FvRg+Es Jf17TelSshsnkcgJ1mBM9DRP9+f7rQoF7qY8phcLUikIYHVWYMPwmab9eLU6k6ZVbj98 DZ9A== X-Received: by 10.66.27.13 with SMTP id p13mr19865457pag.76.1391957796480; Sun, 09 Feb 2014 06:56:36 -0800 (PST) Received: from rashika.iiit.ac.in ([14.139.82.6]) by mx.google.com with ESMTPSA id si6sm86640875pab.19.2014.02.09.06.56.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 06:56:35 -0800 (PST) From: Rashika Kheria To: linux-kernel@vger.kernel.org, josh@joshtriplett.org, "David S. Miller" , Eric Dumazet , Veaceslav Falico , Nicolas Dichtel , Jiri Pirko , Pravin B Shelar , Cong Wang , netdev@vger.kernel.org Subject: =?UTF-8?q?=5BPATCH=20v2=2004/13=5D=20net=3A=20Mark=20functions=20as=20static=20in=20core/dev=2Ec?= Date: Sun, 9 Feb 2014 20:26:25 +0530 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <6f029c895035908595957fb16ab445c82793c77d.1391955924.git.rashika.kheria@gmail.com> References: <6f029c895035908595957fb16ab445c82793c77d.1391955924.git.rashika.kheria@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Mark functions as static in core/dev.c because they are not used outside this file. This eliminates the following warning in core/dev.c: net/core/dev.c:2806:5: warning: no previous prototype for ‘__dev_queue_xmit’ [-Wmissing-prototypes] net/core/dev.c:4640:5: warning: no previous prototype for ‘netdev_adjacent_sysfs_add’ [-Wmissing-prototypes] net/core/dev.c:4650:6: warning: no previous prototype for ‘netdev_adjacent_sysfs_del’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett Reviewed-by: Veaceslav Falico --- net/core/dev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 3721db7..4ad1b78 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2803,7 +2803,7 @@ EXPORT_SYMBOL(dev_loopback_xmit); * the BH enable code must have IRQs enabled so that it will not deadlock. * --BLG */ -int __dev_queue_xmit(struct sk_buff *skb, void *accel_priv) +static int __dev_queue_xmit(struct sk_buff *skb, void *accel_priv) { struct net_device *dev = skb->dev; struct netdev_queue *txq; @@ -4637,7 +4637,7 @@ struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev) } EXPORT_SYMBOL(netdev_master_upper_dev_get_rcu); -int netdev_adjacent_sysfs_add(struct net_device *dev, +static int netdev_adjacent_sysfs_add(struct net_device *dev, struct net_device *adj_dev, struct list_head *dev_list) { @@ -4647,7 +4647,7 @@ int netdev_adjacent_sysfs_add(struct net_device *dev, return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), linkname); } -void netdev_adjacent_sysfs_del(struct net_device *dev, +static void netdev_adjacent_sysfs_del(struct net_device *dev, char *name, struct list_head *dev_list) {