remove dead exports from net/core/dev.c
Subsystems (2)
PATCH 1/1 remove dead exports from net/core/dev.c
this also allows to kill some competely dead code, e.g. many of the non-locked __foo routines.
Signed-off-by Christoph Hellwig <[email protected]>
include/linux/netdevice.h +1 -10
@@ -526,20 +526,13 @@extern int netdev_boot_setup_check (struct net_device *dev);extern unsigned long netdev_boot_base (const char *prefix,int unit);extern struct net_device *dev_getbyhwaddr (unsigned short type,char *hwaddr); -extern struct net_device *__dev_getfirstbyhwtype (unsigned short type);extern struct net_device *dev_getfirstbyhwtype (unsigned short type);extern void dev_add_pack (struct packet_type *pt);extern void dev_remove_pack (struct packet_type *pt);extern void __dev_remove_pack (struct packet_type *pt); -extern int __dev_get (const char *name); -static inline int __deprecated dev_get (const char *name) -{ -return __dev_get (name); -} +extern struct net_device *dev_get_by_flags (unsigned short flags,unsigned short mask); -extern struct net_device *__dev_get_by_flags (unsigned short flags, -unsigned short mask);extern struct net_device *dev_get_by_name (const char *name);extern struct net_device *__dev_get_by_name (const char *name);extern int dev_alloc_name (struct net_device *dev,const char *name);
@@ -553,7 +546,6 @@extern int register_netdevice_notifier (struct notifier_block *nb);extern int unregister_netdevice_notifier (struct notifier_block *nb);extern int call_netdevice_notifiers (unsigned long val,void *v); -extern int dev_new_index (void );extern struct net_device *dev_get_by_index (int ifindex);extern struct net_device *__dev_get_by_index (int ifindex);extern int dev_restart (struct net_device *dev);
@@ -910,7 +902,6 @@/* These functions live elsewhere (drivers/net/net_init.c, but related) */ extern void ether_setup (struct net_device *dev); -extern void fddi_setup (struct net_device *dev);extern void tr_setup (struct net_device *dev);extern void fc_setup (struct net_device *dev);extern void fc_freedev (struct net_device *dev);
net/core/dev.c +13 -76
143 lines not on this page · raw message
Quoted 4 lines · Christoph Hellwig
this also allows to kill some competely dead code, e.g. many of the non-locked
__fooroutines.Signed-off-by Christoph Hellwig <[email protected]>
rediffed against current BK:
include/linux/netdevice.h +1 -9
@@ -526,20 +526,13 @@extern int netdev_boot_setup_check (struct net_device *dev);extern unsigned long netdev_boot_base (const char *prefix,int unit);extern struct net_device *dev_getbyhwaddr (unsigned short type,char *hwaddr); -extern struct net_device *__dev_getfirstbyhwtype (unsigned short type);extern struct net_device *dev_getfirstbyhwtype (unsigned short type);extern void dev_add_pack (struct packet_type *pt);extern void dev_remove_pack (struct packet_type *pt);extern void __dev_remove_pack (struct packet_type *pt); -extern int __dev_get (const char *name); -static inline int __deprecated dev_get (const char *name) -{ -return __dev_get (name); -} +extern struct net_device *dev_get_by_flags (unsigned short flags,unsigned short mask); -extern struct net_device *__dev_get_by_flags (unsigned short flags, -unsigned short mask);extern struct net_device *dev_get_by_name (const char *name);extern struct net_device *__dev_get_by_name (const char *name);extern int dev_alloc_name (struct net_device *dev,const char *name);
@@ -553,7 +546,6 @@extern int register_netdevice_notifier (struct notifier_block *nb);extern int unregister_netdevice_notifier (struct notifier_block *nb);extern int call_netdevice_notifiers (unsigned long val,void *v); -extern int dev_new_index (void );extern struct net_device *dev_get_by_index (int ifindex);extern struct net_device *__dev_get_by_index (int ifindex);extern int dev_restart (struct net_device *dev);
net/core/dev.c +13 -75
138 lines not on this page · raw message
Quoted 7 lines · On Sat, 6 Nov 2004 18:43:07 +0100 Christoph Hellwig <[email protected]> wrote:
Quoted 4 lines · Christoph Hellwig
this also allows to kill some competely dead code, e.g. many of the non-locked
__fooroutines.Signed-off-by Christoph Hellwig <[email protected]>rediffed against current BK:
Applied, thanks Christoph.