percpu: add __percpu sparse annotations to core kernel subsystems
Add __percpu sparse annotations to core subsystems. These annotations are to make sparse consider percpu variables to be in a different address space and warn if accessed without going through percpu accessors. This patch doesn't affect normal builds. Signed-off-by:Tejun Heo <tj@kernel.org> Reviewed-by:
Christoph Lameter <cl@linux-foundation.org> Acked-by:
Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-mm@kvack.org Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Dipankar Sarma <dipankar@in.ibm.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Eric Biederman <ebiederm@xmission.com>
Showing
- include/linux/blktrace_api.h 2 additions, 2 deletionsinclude/linux/blktrace_api.h
- include/linux/genhd.h 1 addition, 1 deletioninclude/linux/genhd.h
- include/linux/kexec.h 1 addition, 1 deletioninclude/linux/kexec.h
- include/linux/mmzone.h 1 addition, 1 deletioninclude/linux/mmzone.h
- include/linux/module.h 1 addition, 1 deletioninclude/linux/module.h
- include/linux/percpu_counter.h 1 addition, 1 deletioninclude/linux/percpu_counter.h
- include/linux/srcu.h 1 addition, 1 deletioninclude/linux/srcu.h
- kernel/kexec.c 1 addition, 1 deletionkernel/kexec.c
- kernel/sched.c 2 additions, 2 deletionskernel/sched.c
- kernel/stop_machine.c 1 addition, 1 deletionkernel/stop_machine.c
- mm/percpu.c 10 additions, 8 deletionsmm/percpu.c
Loading
Please register or sign in to comment