diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2008-12-20 19:57:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:17 -0500 |
commit | 3efb40c2c6eea315abcf19239c15d088e2498299 (patch) | |
tree | d6f36cf47dbe7469a7311bfc8f2dfbf17680845e /net | |
parent | 15530dfd330bd19d14e096f88c70355a61fda3f2 (diff) |
genetlink: export genl_unregister_mc_group()
Add an EXPORT_SYMBOL() to genl_unregister_mc_group(), to allow
unregistering groups on the run. EXPORT_SYMBOL_GPL() is not used as
the rest of the functions exported by this module (eg:
genl_register_mc_group) are also not _GPL().
Cleanup is currently done when unregistering a family, but there is
no way to unregister a single multicast group due to that function not
being exported. Seems to be a mistake as it is documented as for
external consumption.
This is needed by the WiMAX stack to be able to cleanup unused mc
groups.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/netlink/genetlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 3e1191cecaf0..1d3dd30099df 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -225,6 +225,7 @@ void genl_unregister_mc_group(struct genl_family *family, | |||
225 | __genl_unregister_mc_group(family, grp); | 225 | __genl_unregister_mc_group(family, grp); |
226 | genl_unlock(); | 226 | genl_unlock(); |
227 | } | 227 | } |
228 | EXPORT_SYMBOL(genl_unregister_mc_group); | ||
228 | 229 | ||
229 | static void genl_unregister_mc_groups(struct genl_family *family) | 230 | static void genl_unregister_mc_groups(struct genl_family *family) |
230 | { | 231 | { |