percpu: add __percpu for sparse

This is to make the annotation of percpu variables during the next merge
window less painfull.

Extracted from a patch by Rusty Russell.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Stephen Rothwell and committed by Linus Torvalds 29384295 cbee4751

+2
+2
include/linux/compiler.h
··· 15 15 # define __acquire(x) __context__(x,1) 16 16 # define __release(x) __context__(x,-1) 17 17 # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) 18 + # define __percpu __attribute__((noderef, address_space(3))) 18 19 extern void __chk_user_ptr(const volatile void __user *); 19 20 extern void __chk_io_ptr(const volatile void __iomem *); 20 21 #else ··· 33 32 # define __acquire(x) (void)0 34 33 # define __release(x) (void)0 35 34 # define __cond_lock(x,c) (c) 35 + # define __percpu 36 36 #endif 37 37 38 38 #ifdef __KERNEL__