diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-20 22:50:31 +0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-20 22:50:31 +0400 |
commit | 5a05fae5ca7cd5279567747fc34d60413b504cd6 (patch) | |
tree | c461bbbd989cd92486ba69b94d0d79d71ae89bb3 /net/netfilter | |
parent | b31525d16b50fe0eb33545afbc0be1a03f2896e3 (diff) | |
download | linux-5a05fae5ca7cd5279567747fc34d60413b504cd6.tar.xz |
netfilter: nfq_ct_hook needs __rcu and __read_mostly
This removes some sparse warnings.
Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 7eef8453b909..4cd10ed2d6e6 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -265,7 +265,7 @@ void nf_conntrack_destroy(struct nf_conntrack *nfct) } EXPORT_SYMBOL(nf_conntrack_destroy); -struct nfq_ct_hook *nfq_ct_hook; +struct nfq_ct_hook __rcu *nfq_ct_hook __read_mostly; EXPORT_SYMBOL_GPL(nfq_ct_hook); #endif /* CONFIG_NF_CONNTRACK */ |