diff options
-rw-r--r-- | include/linux/netdevice.h | 1 | ||||
-rw-r--r-- | net/core/dev.c | 1 | ||||
-rw-r--r-- | net/core/net-procfs.c | 12 |
3 files changed, 5 insertions, 9 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index f111b4f038f3..b3d00fa4b314 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2646,7 +2646,6 @@ extern void netdev_notify_peers(struct net_device *dev); | |||
2646 | extern void netdev_features_change(struct net_device *dev); | 2646 | extern void netdev_features_change(struct net_device *dev); |
2647 | /* Load a device via the kmod */ | 2647 | /* Load a device via the kmod */ |
2648 | extern void dev_load(struct net *net, const char *name); | 2648 | extern void dev_load(struct net *net, const char *name); |
2649 | extern void dev_mcast_init(void); | ||
2650 | extern struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, | 2649 | extern struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, |
2651 | struct rtnl_link_stats64 *storage); | 2650 | struct rtnl_link_stats64 *storage); |
2652 | extern void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, | 2651 | extern void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, |
diff --git a/net/core/dev.c b/net/core/dev.c index 8d9ddb09f208..17bc535115d3 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -6260,7 +6260,6 @@ static int __init net_dev_init(void) | |||
6260 | 6260 | ||
6261 | hotcpu_notifier(dev_cpu_callback, 0); | 6261 | hotcpu_notifier(dev_cpu_callback, 0); |
6262 | dst_init(); | 6262 | dst_init(); |
6263 | dev_mcast_init(); | ||
6264 | rc = 0; | 6263 | rc = 0; |
6265 | out: | 6264 | out: |
6266 | return rc; | 6265 | return rc; |
diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c index ac87066491e9..0f6bb6f8d391 100644 --- a/net/core/net-procfs.c +++ b/net/core/net-procfs.c | |||
@@ -341,11 +341,6 @@ static struct pernet_operations __net_initdata dev_proc_ops = { | |||
341 | .exit = dev_proc_net_exit, | 341 | .exit = dev_proc_net_exit, |
342 | }; | 342 | }; |
343 | 343 | ||
344 | int __init dev_proc_init(void) | ||
345 | { | ||
346 | return register_pernet_subsys(&dev_proc_ops); | ||
347 | } | ||
348 | |||
349 | static int dev_mc_seq_show(struct seq_file *seq, void *v) | 344 | static int dev_mc_seq_show(struct seq_file *seq, void *v) |
350 | { | 345 | { |
351 | struct netdev_hw_addr *ha; | 346 | struct netdev_hw_addr *ha; |
@@ -408,7 +403,10 @@ static struct pernet_operations __net_initdata dev_mc_net_ops = { | |||
408 | .exit = dev_mc_net_exit, | 403 | .exit = dev_mc_net_exit, |
409 | }; | 404 | }; |
410 | 405 | ||
411 | void __init dev_mcast_init(void) | 406 | int __init dev_proc_init(void) |
412 | { | 407 | { |
413 | register_pernet_subsys(&dev_mc_net_ops); | 408 | int ret = register_pernet_subsys(&dev_proc_ops); |
409 | if (!ret) | ||
410 | return register_pernet_subsys(&dev_mc_net_ops); | ||
411 | return ret; | ||
414 | } | 412 | } |