summaryrefslogtreecommitdiffstats
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-08-07 03:26:23 +0900
committerTejun Heo <tj@kernel.org>2010-08-07 14:20:53 +0200
commit18cb2aef91b37dbce2bec2f39bb1dddd0e9dd838 (patch)
treef0290a76bc8bb08f47daa888dbd1296f34476268 /include/linux/percpu.h
parent4a386c3e177ca2fbc70c9283d0b46537844763a0 (diff)
downloadop-kernel-dev-18cb2aef91b37dbce2bec2f39bb1dddd0e9dd838.zip
op-kernel-dev-18cb2aef91b37dbce2bec2f39bb1dddd0e9dd838.tar.gz
percpu: handle __percpu notations in UP accessors
UP accessors didn't take care of __percpu notations leading to a lot of spurious sparse warnings on UP configurations. Fix it. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r--include/linux/percpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index b8b9084..49466b1 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -149,7 +149,7 @@ extern void __init percpu_init_late(void);
#else /* CONFIG_SMP */
-#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); (ptr); })
+#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR((ptr)); })
/* can't distinguish from other static vars, always false */
static inline bool is_kernel_percpu_address(unsigned long addr)
OpenPOWER on IntegriCloud