Skip to content

Commit 25fd386

Browse files
Florian Westphalummakynes
authored andcommitted
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 <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent d5e032f commit 25fd386

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/netfilter/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ void (*nf_nat_decode_session_hook)(struct sk_buff *, struct flowi *);
585585
EXPORT_SYMBOL(nf_nat_decode_session_hook);
586586
#endif
587587

588-
static void __net_init __netfilter_net_init(struct nf_hook_entries **e, int max)
588+
static void __net_init
589+
__netfilter_net_init(struct nf_hook_entries __rcu **e, int max)
589590
{
590591
int h;
591592

0 commit comments

Comments
 (0)