diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-02-09 09:56:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-09 20:32:49 -0500 |
commit | 0a59f3a9fd7e2801a445682465ea0522ea497183 (patch) | |
tree | 0cff04c9a23b584233285a4e0ba3b256ce9c901e /net/core/dev.c | |
parent | 02fe72c9edc58d6b5d85c08327d7ef05cd3e97dc (diff) |
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>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 3721db716350..4ad1b78c9c77 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2803,7 +2803,7 @@ EXPORT_SYMBOL(dev_loopback_xmit); | |||
2803 | * the BH enable code must have IRQs enabled so that it will not deadlock. | 2803 | * the BH enable code must have IRQs enabled so that it will not deadlock. |
2804 | * --BLG | 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 | struct net_device *dev = skb->dev; | 2808 | struct net_device *dev = skb->dev; |
2809 | struct netdev_queue *txq; | 2809 | struct netdev_queue *txq; |
@@ -4637,7 +4637,7 @@ struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev) | |||
4637 | } | 4637 | } |
4638 | EXPORT_SYMBOL(netdev_master_upper_dev_get_rcu); | 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 | struct net_device *adj_dev, | 4641 | struct net_device *adj_dev, |
4642 | struct list_head *dev_list) | 4642 | struct list_head *dev_list) |
4643 | { | 4643 | { |
@@ -4647,7 +4647,7 @@ int netdev_adjacent_sysfs_add(struct net_device *dev, | |||
4647 | return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), | 4647 | return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj), |
4648 | linkname); | 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 | char *name, | 4651 | char *name, |
4652 | struct list_head *dev_list) | 4652 | struct list_head *dev_list) |
4653 | { | 4653 | { |