net: core functions cleanup
Subsystems (2)
PATCH 1/1 net: core functions cleanup
The following functions are not used outside of net/core/dev.c
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:
netdev_lower_dev_get_private_rcu
__netdev_find_adj_rcu
Signed-off-by Stephen Hemminger <[email protected]>
--- include/linux/netdevice.h | 6 --- net/core/dev.c | 79 +++++++++++++--------------------------------- 2 files changed, 24 insertions(+), 61 deletions(-)
include/linux/netdevice.h +0 -6
@@ -1741,8 +1741,6 @@ netdev_notifier_info_to_dev(const structreturn info->dev; } -int call_netdevice_notifiers_info (unsigned long val,struct net_device *dev, -struct netdev_notifier_info *info);int call_netdevice_notifiers (unsigned long val,struct net_device *dev);
@@ -1809,7 +1807,6 @@ void dev_remove_pack(struct packet_typevoid __dev_remove_pack (struct packet_type *pt);void dev_add_offload (struct packet_offload *po);void dev_remove_offload (struct packet_offload *po); -void __dev_remove_offload (struct packet_offload *po);struct net_device *dev_get_by_flags_rcu (struct net *net,unsigned short flags,unsigned short mask);
@@ -2867,7 +2864,6 @@ extern int weight_p;extern int bpf_jit_enable;bool netdev_has_upper_dev (struct net_device *dev,struct net_device *upper_dev); -bool netdev_has_any_upper_dev (struct net_device *dev);struct net_device *netdev_all_upper_get_next_dev_rcu (struct net_device *dev,struct list_head **iter);
@@ -2907,8 +2903,6 @@ int netdev_master_upper_dev_link_private void *private);void netdev_upper_dev_unlink (struct net_device *dev,struct net_device *upper_dev); -void *netdev_lower_dev_get_private_rcu (struct net_device *dev, -struct net_device *lower_dev);void *netdev_lower_dev_get_private (struct net_device *dev,struct net_device *lower_dev);int skb_checksum_help (struct sk_buff *skb);
net/core/dev.c +24 -55
167 lines not on this page · raw message
David Miller
maintainerFrom: Stephen Hemminger <[email protected]>
Date: Sun, 29 Dec 2013 11:38:33 -0800
net/core/dev.c EXPORT_SYMBOL(unregister_netdevice_notif · line 1569
Quoted 7 lines
net/core/dev.c +1
-1@@ -1566,14 +1565,13 @@ EXPORT_SYMBOL(unregister_netdevice_notif* are as for raw_notifier_call_chain(). */ -int call_netdevice_notifiers_info (unsigned long val,struct net_device *dev, +static int call_netdevice_notifiers_info (unsigned long val,struct net_device *dev,struct netdev_notifier_info *info)
Please reindent.