From: Daniel Mack Date: Thu, 15 Dec 2016 09:53:21 +0000 (+0100) Subject: bpf: cgroup: annotate pointers in struct cgroup_bpf with __rcu X-Git-Tag: v4.10-rc1~55^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcdc43d6642c828fa10d25130a92b712003d2ca4;p=thirdparty%2Fkernel%2Flinux.git bpf: cgroup: annotate pointers in struct cgroup_bpf with __rcu The member 'effective' in 'struct cgroup_bpf' is protected by RCU. Annotate it accordingly to squelch a sparse warning. Signed-off-by: Daniel Mack Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h index 7b6e5d168c956..92bc89ae7e207 100644 --- a/include/linux/bpf-cgroup.h +++ b/include/linux/bpf-cgroup.h @@ -20,7 +20,7 @@ struct cgroup_bpf { * when this cgroup is accessed. */ struct bpf_prog *prog[MAX_BPF_ATTACH_TYPE]; - struct bpf_prog *effective[MAX_BPF_ATTACH_TYPE]; + struct bpf_prog __rcu *effective[MAX_BPF_ATTACH_TYPE]; }; void cgroup_bpf_put(struct cgroup *cgrp);