aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-12-29 17:01:29 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-01 23:46:09 -0500
commit1d143d9f0c833fcf38cc737eb0a8698fa2dd144c (patch)
treebb777ea9004c6828671f7ef284006bfeffcdc6a8 /include/linux/netdevice.h
parent2173f8d953e76026bf6ede8ec81ad35ec158dae9 (diff)
net: core functions cleanup
The following functions are not used outside of net/core/dev.c and should be declared static. call_netdevice_notifiers_info __dev_remove_offload netdev_has_any_upper_dev __netdev_adjacent_dev_remove __netdev_adjacent_dev_link_lists __netdev_adjacent_dev_unlink_lists __netdev_adjacent_dev_unlink __netdev_adjacent_dev_link_neighbour __netdev_adjacent_dev_unlink_neighbour And the following are never used and should be deleted netdev_lower_dev_get_private_rcu __netdev_find_adj_rcu Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 88afa8048a7c..bec60c481966 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1741,8 +1741,6 @@ netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
1741 return info->dev; 1741 return info->dev;
1742} 1742}
1743 1743
1744int call_netdevice_notifiers_info(unsigned long val, struct net_device *dev,
1745 struct netdev_notifier_info *info);
1746int call_netdevice_notifiers(unsigned long val, struct net_device *dev); 1744int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
1747 1745
1748 1746
@@ -1809,7 +1807,6 @@ void dev_remove_pack(struct packet_type *pt);
1809void __dev_remove_pack(struct packet_type *pt); 1807void __dev_remove_pack(struct packet_type *pt);
1810void dev_add_offload(struct packet_offload *po); 1808void dev_add_offload(struct packet_offload *po);
1811void dev_remove_offload(struct packet_offload *po); 1809void dev_remove_offload(struct packet_offload *po);
1812void __dev_remove_offload(struct packet_offload *po);
1813 1810
1814struct net_device *dev_get_by_flags_rcu(struct net *net, unsigned short flags, 1811struct net_device *dev_get_by_flags_rcu(struct net *net, unsigned short flags,
1815 unsigned short mask); 1812 unsigned short mask);
@@ -2867,7 +2864,6 @@ extern int weight_p;
2867extern int bpf_jit_enable; 2864extern int bpf_jit_enable;
2868 2865
2869bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev); 2866bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
2870bool netdev_has_any_upper_dev(struct net_device *dev);
2871struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev, 2867struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev,
2872 struct list_head **iter); 2868 struct list_head **iter);
2873 2869
@@ -2907,8 +2903,6 @@ int netdev_master_upper_dev_link_private(struct net_device *dev,
2907 void *private); 2903 void *private);
2908void netdev_upper_dev_unlink(struct net_device *dev, 2904void netdev_upper_dev_unlink(struct net_device *dev,
2909 struct net_device *upper_dev); 2905 struct net_device *upper_dev);
2910void *netdev_lower_dev_get_private_rcu(struct net_device *dev,
2911 struct net_device *lower_dev);
2912void *netdev_lower_dev_get_private(struct net_device *dev, 2906void *netdev_lower_dev_get_private(struct net_device *dev,
2913 struct net_device *lower_dev); 2907 struct net_device *lower_dev);
2914int skb_checksum_help(struct sk_buff *skb); 2908int skb_checksum_help(struct sk_buff *skb);