X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fpercpu.h;h=49466b13c5c6b310f36b31c052573864df6f02a0;hb=18cb2aef91b37dbce2bec2f39bb1dddd0e9dd838;hp=b8b9084527b18029f602c02fe9db5d7c5754364b;hpb=4a386c3e177ca2fbc70c9283d0b46537844763a0;p=net-next-2.6.git diff --git a/include/linux/percpu.h b/include/linux/percpu.h index b8b9084527b..49466b13c5c 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)