diff options
-rw-r--r-- | include/net/rtnetlink.h | 1 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index af60fd050844..e013c68bfb00 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
@@ -79,7 +79,6 @@ struct rtnl_link_ops { | |||
79 | 79 | ||
80 | extern int __rtnl_link_register(struct rtnl_link_ops *ops); | 80 | extern int __rtnl_link_register(struct rtnl_link_ops *ops); |
81 | extern void __rtnl_link_unregister(struct rtnl_link_ops *ops); | 81 | extern void __rtnl_link_unregister(struct rtnl_link_ops *ops); |
82 | extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops); | ||
83 | 82 | ||
84 | extern int rtnl_link_register(struct rtnl_link_ops *ops); | 83 | extern int rtnl_link_register(struct rtnl_link_ops *ops); |
85 | extern void rtnl_link_unregister(struct rtnl_link_ops *ops); | 84 | extern void rtnl_link_unregister(struct rtnl_link_ops *ops); |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index b2a718dfd720..8121268ddbdd 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -299,14 +299,6 @@ static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) | |||
299 | unregister_netdevice_many(&list_kill); | 299 | unregister_netdevice_many(&list_kill); |
300 | } | 300 | } |
301 | 301 | ||
302 | void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) | ||
303 | { | ||
304 | rtnl_lock(); | ||
305 | __rtnl_kill_links(net, ops); | ||
306 | rtnl_unlock(); | ||
307 | } | ||
308 | EXPORT_SYMBOL_GPL(rtnl_kill_links); | ||
309 | |||
310 | /** | 302 | /** |
311 | * __rtnl_link_unregister - Unregister rtnl_link_ops from rtnetlink. | 303 | * __rtnl_link_unregister - Unregister rtnl_link_ops from rtnetlink. |
312 | * @ops: struct rtnl_link_ops * to unregister | 304 | * @ops: struct rtnl_link_ops * to unregister |