aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-12-30 13:49:22 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-01 23:43:36 -0500
commit2173f8d953e76026bf6ede8ec81ad35ec158dae9 (patch)
tree1b429b28c565b1a8e7e4dd882966877a3279fc0a /net/netlink
parent6da67d260873e157a8df28bc8b1b10d8e0cab099 (diff)
netlink: cleanup tap related functions
Cleanups in netlink_tap code * remove unused function netlink_clear_multicast_users * make local function static Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 3f75f1cd9eb3..b077b90c1254 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -131,7 +131,7 @@ int netlink_add_tap(struct netlink_tap *nt)
131} 131}
132EXPORT_SYMBOL_GPL(netlink_add_tap); 132EXPORT_SYMBOL_GPL(netlink_add_tap);
133 133
134int __netlink_remove_tap(struct netlink_tap *nt) 134static int __netlink_remove_tap(struct netlink_tap *nt)
135{ 135{
136 bool found = false; 136 bool found = false;
137 struct netlink_tap *tmp; 137 struct netlink_tap *tmp;
@@ -155,7 +155,6 @@ out:
155 155
156 return found ? 0 : -ENODEV; 156 return found ? 0 : -ENODEV;
157} 157}
158EXPORT_SYMBOL_GPL(__netlink_remove_tap);
159 158
160int netlink_remove_tap(struct netlink_tap *nt) 159int netlink_remove_tap(struct netlink_tap *nt)
161{ 160{
@@ -2540,21 +2539,6 @@ void __netlink_clear_multicast_users(struct sock *ksk, unsigned int group)
2540 netlink_update_socket_mc(nlk_sk(sk), group, 0); 2539 netlink_update_socket_mc(nlk_sk(sk), group, 0);
2541} 2540}
2542 2541
2543/**
2544 * netlink_clear_multicast_users - kick off multicast listeners
2545 *
2546 * This function removes all listeners from the given group.
2547 * @ksk: The kernel netlink socket, as returned by
2548 * netlink_kernel_create().
2549 * @group: The multicast group to clear.
2550 */
2551void netlink_clear_multicast_users(struct sock *ksk, unsigned int group)
2552{
2553 netlink_table_grab();
2554 __netlink_clear_multicast_users(ksk, group);
2555 netlink_table_ungrab();
2556}
2557
2558struct nlmsghdr * 2542struct nlmsghdr *
2559__nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int flags) 2543__nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int flags)
2560{ 2544{