diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-20 14:50:31 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-06-20 14:50:31 -0400 |
commit | 5a05fae5ca7cd5279567747fc34d60413b504cd6 (patch) | |
tree | c461bbbd989cd92486ba69b94d0d79d71ae89bb3 /include | |
parent | b31525d16b50fe0eb33545afbc0be1a03f2896e3 (diff) |
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 'include')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index dca19e61b30a..38b96a54f9a5 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
@@ -404,7 +404,7 @@ struct nfq_ct_hook { | |||
404 | void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct, | 404 | void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct, |
405 | u32 ctinfo, int off); | 405 | u32 ctinfo, int off); |
406 | }; | 406 | }; |
407 | extern struct nfq_ct_hook *nfq_ct_hook; | 407 | extern struct nfq_ct_hook __rcu *nfq_ct_hook; |
408 | #else | 408 | #else |
409 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} | 409 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} |
410 | #endif | 410 | #endif |