diff options
author | 2020-07-31 00:17:20 -0400 | |
---|---|---|
committer | 2020-07-31 17:17:53 -0700 | |
commit | 8f3f330da28ede9d106cd9d5c5ccd6a3e7e9b50b (patch) | |
tree | 9e6cb04d277a46ffcec1c5769fe33f759023fb69 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tcp: add earliest departure time to SCM_TIMESTAMPING_OPT_STATS (diff) | |
download | wireguard-linux-8f3f330da28ede9d106cd9d5c5ccd6a3e7e9b50b.tar.xz wireguard-linux-8f3f330da28ede9d106cd9d5c5ccd6a3e7e9b50b.zip |
tun: add missing rcu annotation in tun_set_ebpf()
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:3003:36: got struct tun_prog **prog_p
drivers/net/tun.c:3292:42: warning: incorrect type in argument 2 (different address spaces)
drivers/net/tun.c:3292:42: expected struct tun_prog **prog_p
drivers/net/tun.c:3292:42: got struct tun_prog [noderef] __rcu **
drivers/net/tun.c:3296:42: warning: incorrect type in argument 2 (different address spaces)
drivers/net/tun.c:3296:42: expected struct tun_prog **prog_p
drivers/net/tun.c:3296:42: got struct tun_prog [noderef] __rcu **
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions