From mboxrd@z Thu Jan 1 00:00:00 1970 From: Inaky Perez-Gonzalez Subject: [PATCH 06/39] genetlink: export genl_unregister_mc_group() Date: Mon, 24 Nov 2008 13:50:29 -0800 Message-ID: References: Cc: Johannes Berg , Thomas Graf To: netdev@vger.kernel.org Return-path: Received: from mga12.intel.com ([143.182.124.36]:47824 "EHLO azsmga102.ch.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752947AbYKXVvQ (ORCPT ); Mon, 24 Nov 2008 16:51:16 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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 Cc: Johannes Berg Cc: Thomas Graf --- 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 3e1191c..1d3dd30 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -225,6 +225,7 @@ void genl_unregister_mc_group(struct genl_family *family, __genl_unregister_mc_group(family, grp); genl_unlock(); } +EXPORT_SYMBOL(genl_unregister_mc_group); static void genl_unregister_mc_groups(struct genl_family *family) { -- 1.5.6.5