netfilter: nf_ct_labels: move initialization out of pernet_operations
Move the global initial codes to the module_init/exit context. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:

committed by
Pablo Neira Ayuso

parent
5e615b2200
commit
5f69b8f521
@@ -50,9 +50,9 @@ 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(struct net *net);
|
||||
void nf_conntrack_labels_fini(struct net *net);
|
||||
int nf_conntrack_labels_init(void);
|
||||
void nf_conntrack_labels_fini(void);
|
||||
#else
|
||||
static inline int nf_conntrack_labels_init(struct net *n) { return 0; }
|
||||
static inline void nf_conntrack_labels_fini(struct net *net) {}
|
||||
static inline int nf_conntrack_labels_init(void) { return 0; }
|
||||
static inline void nf_conntrack_labels_fini(void) {}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user