Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Mark functions as static in core/dev.c

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 <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rashika Kheria and committed by
David S. Miller
0a59f3a9 02fe72c9

+3 -3
+3 -3
net/core/dev.c
··· 2803 2803 * the BH enable code must have IRQs enabled so that it will not deadlock. 2804 2804 * --BLG 2805 2805 */ 2806 - int __dev_queue_xmit(struct sk_buff *skb, void *accel_priv) 2806 + static int __dev_queue_xmit(struct sk_buff *skb, void *accel_priv) 2807 2807 { 2808 2808 struct net_device *dev = skb->dev; 2809 2809 struct netdev_queue *txq; ··· 4637 4637 } 4638 4638 EXPORT_SYMBOL(netdev_master_upper_dev_get_rcu); 4639 4639 4640 - int netdev_adjacent_sysfs_add(struct net_device *dev, 4640 + static int netdev_adjacent_sysfs_add(struct net_device *dev, 4641 4641 struct net_device *adj_dev, 4642 4642 struct list_head *dev_list) 4643 4643 { ··· 4647 4647 return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), 4648 4648 linkname); 4649 4649 } 4650 - void netdev_adjacent_sysfs_del(struct net_device *dev, 4650 + static void netdev_adjacent_sysfs_del(struct net_device *dev, 4651 4651 char *name, 4652 4652 struct list_head *dev_list) 4653 4653 {