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>
This commit is contained in:
parent
02fe72c9ed
commit
0a59f3a9fd
|
@ -2803,7 +2803,7 @@ EXPORT_SYMBOL(dev_loopback_xmit);
|
||||||
* the BH enable code must have IRQs enabled so that it will not deadlock.
|
* the BH enable code must have IRQs enabled so that it will not deadlock.
|
||||||
* --BLG
|
* --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 net_device *dev = skb->dev;
|
||||||
struct netdev_queue *txq;
|
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);
|
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 net_device *adj_dev,
|
||||||
struct list_head *dev_list)
|
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),
|
return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->dev.kobj),
|
||||||
linkname);
|
linkname);
|
||||||
}
|
}
|
||||||
void netdev_adjacent_sysfs_del(struct net_device *dev,
|
static void netdev_adjacent_sysfs_del(struct net_device *dev,
|
||||||
char *name,
|
char *name,
|
||||||
struct list_head *dev_list)
|
struct list_head *dev_list)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue