Skip to content

Commit 06fb555

Browse files
jmberg-inteldavem330
authored andcommitted
genetlink: remove genl_unregister_mc_group()
There are no users of this API remaining, and we'll soon change group registration to be static (like ops are now) Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 03ed382 commit 06fb555

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

‎include/net/genetlink.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ static inline int _genl_register_family_with_ops(struct genl_family *family,
168168
int genl_unregister_family(struct genl_family *family);
169169
int genl_register_mc_group(struct genl_family *family,
170170
struct genl_multicast_group *grp);
171-
void genl_unregister_mc_group(struct genl_family *family,
172-
struct genl_multicast_group *grp);
173171
void genl_notify(struct sk_buff *skb, struct net *net, u32 portid,
174172
u32 group, struct nlmsghdr *nlh, gfp_t flags);
175173

‎net/netlink/genetlink.c‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -265,29 +265,6 @@ static void __genl_unregister_mc_group(struct genl_family *family,
265265
grp->family = NULL;
266266
}
267267

268-
/**
269-
* genl_unregister_mc_group - unregister a multicast group
270-
*
271-
* Unregisters the specified multicast group and notifies userspace
272-
* about it. All current listeners on the group are removed.
273-
*
274-
* Note: It is not necessary to unregister all multicast groups before
275-
* unregistering the family, unregistering the family will cause
276-
* all assigned multicast groups to be unregistered automatically.
277-
*
278-
* @family: Generic netlink family the group belongs to.
279-
* @grp: The group to unregister, must have been registered successfully
280-
* previously.
281-
*/
282-
void genl_unregister_mc_group(struct genl_family *family,
283-
struct genl_multicast_group *grp)
284-
{
285-
genl_lock_all();
286-
__genl_unregister_mc_group(family, grp);
287-
genl_unlock_all();
288-
}
289-
EXPORT_SYMBOL(genl_unregister_mc_group);
290-
291268
static void genl_unregister_mc_groups(struct genl_family *family)
292269
{
293270
struct genl_multicast_group *grp, *tmp;

0 commit comments

Comments
 (0)