From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Leblond Subject: [PATCH 2/7] netfilter: suppress nf_log_unregister_pf function. Date: Mon, 9 Feb 2009 22:11:11 +0100 Message-ID: <1234213876-8176-2-git-send-email-eric@inl.fr> References: <49909B3E.0@inl.fr> Cc: netfilter-devel@vger.kernel.org, Eric Leblond To: kaber@trash.net Return-path: Received: from bayen.regit.org ([81.57.69.189]:36903 "EHLO ice-age" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753763AbZBIVLX (ORCPT ); Mon, 9 Feb 2009 16:11:23 -0500 In-Reply-To: <49909B3E.0@inl.fr> Sender: netfilter-devel-owner@vger.kernel.org List-ID: The nf_log_unregister_pf() function is not used anymore as it was corresponding to the unbind operation which is now done via nflog_unbind_pf(). Signed-off-by: Eric Leblond --- include/net/netfilter/nf_log.h | 1 - net/netfilter/nf_log.c | 15 --------------- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/include/net/netfilter/nf_log.h b/include/net/netfilter/nf_log.h index 08b4f18..ccaa43a 100644 --- a/include/net/netfilter/nf_log.h +++ b/include/net/netfilter/nf_log.h @@ -48,7 +48,6 @@ struct nf_logger { /* Function to register/unregister log function. */ int nf_log_register(u_int8_t pf, struct nf_logger *logger); void nf_log_unregister(struct nf_logger *logger); -void nf_log_unregister_pf(u_int8_t pf); int nf_log_bind_pf(u_int8_t pf, const struct nf_logger *logger); int nf_log_unbind_pf(u_int8_t pf); diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 8a5e4aa..a1dcd46 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -69,21 +69,6 @@ int nf_log_register(u_int8_t pf, struct nf_logger *logger) } EXPORT_SYMBOL(nf_log_register); -void nf_log_unregister_pf(u_int8_t pf) -{ - struct nf_logger *e; - if (pf >= ARRAY_SIZE(nf_loggers)) - return; - spin_lock_bh(&nf_log_lock); - list_for_each_entry(e, &(nf_loggers_l[pf]), list[pf]) - list_del(&(e->list[pf])); - spin_unlock_bh(&nf_log_lock); - - /* Give time to concurrent readers. */ - synchronize_rcu(); -} -EXPORT_SYMBOL(nf_log_unregister_pf); - void nf_log_unregister(struct nf_logger *logger) { int i; -- 1.5.6.3