diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-12-29 17:01:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-01 23:46:09 -0500 |
commit | 1d143d9f0c833fcf38cc737eb0a8698fa2dd144c (patch) | |
tree | bb777ea9004c6828671f7ef284006bfeffcdc6a8 /include/linux/netdevice.h | |
parent | 2173f8d953e76026bf6ede8ec81ad35ec158dae9 (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.h | 6 |
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 | ||
1744 | int call_netdevice_notifiers_info(unsigned long val, struct net_device *dev, | ||
1745 | struct netdev_notifier_info *info); | ||
1746 | int call_netdevice_notifiers(unsigned long val, struct net_device *dev); | 1744 | int 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); | |||
1809 | void __dev_remove_pack(struct packet_type *pt); | 1807 | void __dev_remove_pack(struct packet_type *pt); |
1810 | void dev_add_offload(struct packet_offload *po); | 1808 | void dev_add_offload(struct packet_offload *po); |
1811 | void dev_remove_offload(struct packet_offload *po); | 1809 | void dev_remove_offload(struct packet_offload *po); |
1812 | void __dev_remove_offload(struct packet_offload *po); | ||
1813 | 1810 | ||
1814 | struct net_device *dev_get_by_flags_rcu(struct net *net, unsigned short flags, | 1811 | struct 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; | |||
2867 | extern int bpf_jit_enable; | 2864 | extern int bpf_jit_enable; |
2868 | 2865 | ||
2869 | bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev); | 2866 | bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev); |
2870 | bool netdev_has_any_upper_dev(struct net_device *dev); | ||
2871 | struct net_device *netdev_all_upper_get_next_dev_rcu(struct net_device *dev, | 2867 | struct 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); |
2908 | void netdev_upper_dev_unlink(struct net_device *dev, | 2904 | void netdev_upper_dev_unlink(struct net_device *dev, |
2909 | struct net_device *upper_dev); | 2905 | struct net_device *upper_dev); |
2910 | void *netdev_lower_dev_get_private_rcu(struct net_device *dev, | ||
2911 | struct net_device *lower_dev); | ||
2912 | void *netdev_lower_dev_get_private(struct net_device *dev, | 2906 | void *netdev_lower_dev_get_private(struct net_device *dev, |
2913 | struct net_device *lower_dev); | 2907 | struct net_device *lower_dev); |
2914 | int skb_checksum_help(struct sk_buff *skb); | 2908 | int skb_checksum_help(struct sk_buff *skb); |