diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-04 18:16:06 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-08 14:15:30 +0200 |
commit | 25fd386e0bc065849db7400f579e82863ea44838 (patch) | |
tree | 7de5ccd4c23e63ec23040d1737ca818867228774 /net/netfilter/core.c | |
parent | d5e032fc5697b6c0d6b4958bcacb981a08f8174e (diff) | |
download | linux-stable-25fd386e0bc065849db7400f579e82863ea44838.tar.gz linux-stable-25fd386e0bc065849db7400f579e82863ea44838.tar.bz2 linux-stable-25fd386e0bc065849db7400f579e82863ea44838.zip |
netfilter: core: add missing __rcu annotation
removes following sparse error:
net/netfilter/core.c:598:30: warning: incorrect type in argument 1 (different address spaces)
net/netfilter/core.c:598:30: expected struct nf_hook_entries **e
net/netfilter/core.c:598:30: got struct nf_hook_entries [noderef] <asn:4>**<noident>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/core.c')
-rw-r--r-- | net/netfilter/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 0f6b8172fb9a..206fb2c4c319 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -585,7 +585,8 @@ void (*nf_nat_decode_session_hook)(struct sk_buff *, struct flowi *); EXPORT_SYMBOL(nf_nat_decode_session_hook); #endif -static void __net_init __netfilter_net_init(struct nf_hook_entries **e, int max) +static void __net_init +__netfilter_net_init(struct nf_hook_entries __rcu **e, int max) { int h; |