From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Triplett Subject: Re: [PATCH 04/13] net: Mark functions as static in core/dev.c Date: Sat, 8 Feb 2014 12:07:00 -0800 Message-ID: <20140208200700.GD20885@leaf> References: <6f029c895035908595957fb16ab445c82793c77d.1391888654.git.rashika.kheria@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Veaceslav Falico , Nicolas Dichtel , Jiri Pirko , Pravin B Shelar , Cong Wang , netdev@vger.kernel.org To: Rashika Kheria Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sun, Feb 09, 2014 at 01:23:45AM +0530, Rashika Kheria wrote: > Mark functions as static in core/dev.c because they are not used outs= ide > this file. >=20 > This eliminates the following warning in core/dev.c: > net/core/dev.c:2806:5: warning: no previous prototype for =E2=80=98__= dev_queue_xmit=E2=80=99 [-Wmissing-prototypes] > net/core/dev.c:4640:5: warning: no previous prototype for =E2=80=98ne= tdev_adjacent_sysfs_add=E2=80=99 [-Wmissing-prototypes] > net/core/dev.c:4650:6: warning: no previous prototype for =E2=80=98ne= tdev_adjacent_sysfs_del=E2=80=99 [-Wmissing-prototypes] >=20 > Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett > net/core/dev.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > 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 no= t 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 =3D 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); > =20 > -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) > { > --=20 > 1.7.9.5 >=20