Re: [PATCH net-next] tun: add missing rcu annotation in tun_set_ebpf()

2020-07-31 Thread David Miller
From: Jason Wang Date: Fri, 31 Jul 2020 00:17:20 -0400 > We expecte prog_p to be protected by rcu, so adding the rcu annotation > to fix the following sparse warning: > > drivers/net/tun.c:3003:36: warning: incorrect type in argument 2 (different > address spaces) > drivers/net/tun.c:3003:36:

[PATCH net-next] tun: add missing rcu annotation in tun_set_ebpf()

2020-07-30 Thread Jason Wang
We expecte prog_p to be protected by rcu, so adding the rcu annotation to fix the following sparse warning: drivers/net/tun.c:3003:36: warning: incorrect type in argument 2 (different address spaces) drivers/net/tun.c:3003:36:expected struct tun_prog [noderef] __rcu **prog_p drivers/net/tun.c

Re: [PATCH net-next] tun: add missing rcu annotation

2018-01-22 Thread David Miller
From: Jason Wang Date: Mon, 22 Jan 2018 10:55:38 +0800 > This patch fixes the following sparse warnings: > > drivers/net/tun.c:2241:15: error: incompatible types in comparison expression > (different address spaces) > > Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct >

[PATCH net-next] tun: add missing rcu annotation

2018-01-21 Thread Jason Wang
This patch fixes the following sparse warnings: drivers/net/tun.c:2241:15: error: incompatible types in comparison expression (different address spaces) Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct tun_prog") Cc: Daniel Borkmann Signed-off-by: Jason Wang --- driver