Message ID | 20180504161606.18007-1-fw@strlen.de |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | [nf] netfilter: core: add missing __rcu annotation | expand |
On Fri, May 04, 2018 at 06:16:06PM +0200, Florian Westphal wrote: > 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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;
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> --- net/netfilter/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)