percpu: make accessors check for percpu pointer in sparse
commit545695fb41da117928ab946067a42d9e15fd009d
authorTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:15 +0000 (29 22:34 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:15 +0000 (29 22:34 +0900)
tree1ea32c45a6f6efb03a88f99278f065054a5de3e2
parente0fdb0e050eae331046385643618f12452aa7e73
percpu: make accessors check for percpu pointer in sparse

The previous patch made sparse warn about percpu variables being used
directly without going through percpu accessors.  This patch
implements the other half - checking whether non percpu variable is
passed into percpu accessors.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>
include/asm-generic/percpu.h
include/linux/percpu-defs.h
include/linux/percpu.h