netfilter: conntrack: Remove unused function declarations
Subsystems (3)
PATCH 1/1 netfilter: conntrack: Remove unused function declarations
Commit 1015c3de23ee ("netfilter: conntrack: remove extension register api") leave nf_conntrack_acct_fini() and nf_conntrack_labels_init() unused, remove it. And commit a0ae2562c6c4 ("netfilter: conntrack: remove l3proto abstraction") leave behind nf_ct_l3proto_try_module_get() and nf_ct_l3proto_module_put().
Signed-off-by Yue Haibing <[email protected]>
--- include/net/netfilter/nf_conntrack.h | 4 ---- include/net/netfilter/nf_conntrack_acct.h | 2 -- include/net/netfilter/nf_conntrack_labels.h | 1 - 3 files changed, 7 deletions(-)
include/net/netfilter/nf_conntrack.h +0 -4
@@ -190,10 +190,6 @@ static inline void nf_ct_put(struct nf_conn *ct)nf_ct_destroy (&ct->ct_general); } -/* Protocol module loading */ -int nf_ct_l3proto_try_module_get (unsigned short l3proto); -void nf_ct_l3proto_module_put (unsigned short l3proto); -/* load module; enable/disable conntrack in this namespace */ int nf_ct_netns_get (struct net *net,u8 nfproto);void nf_ct_netns_put (struct net *net,u8 nfproto);
include/net/netfilter/nf_conntrack_acct.h +0 -2
@@ -78,6 +78,4 @@ static inline void nf_ct_acct_update(struct nf_conn *ct, u32 dir,void nf_conntrack_acct_pernet_init (struct net *net); -void nf_conntrack_acct_fini (void ); -#endif /* _NF_CONNTRACK_ACCT_H */
include/net/netfilter/nf_conntrack_labels.h +0 -1
@@ -52,7 +52,6 @@ int nf_connlabels_replace(struct nf_conn *ct, const u32 *data, const u32 *mask, unsigned int words);#ifdef CONFIG_NF_CONNTRACK_LABELS -int nf_conntrack_labels_init (void );int nf_connlabels_get (struct net *net,unsigned int bit);void nf_connlabels_put (struct net *net);#else
Signature · 1 line
2.34.1
Quoted 6 lines · Yue Haibing
Commit
1015c3de23ee("netfilter: conntrack: remove extension register api") leavenf_conntrack_acct_fini()andnf_conntrack_labels_init()unused, remove it. And commita0ae2562c6c4("netfilter: conntrack: remove l3proto abstraction") leave behindnf_ct_l3proto_try_module_get()andnf_ct_l3proto_module_put().Signed-off-by Yue Haibing <[email protected]>
Reviewed-by Simon Horman <[email protected]>