From: Konstantin Khlebnikov Date: Tue, 28 Feb 2012 20:41:12 +0000 (+0400) Subject: percpu: fix __this_cpu_{sub,inc,dec}_return() definition X-Git-Tag: v3.3-rc7~41^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adb795062f89b8d67d295ee25e04034bccce6779;p=profile%2Fcommon%2Fkernel-common.git percpu: fix __this_cpu_{sub,inc,dec}_return() definition This patch adds missed "__" prefixes, otherwise these functions works as irq/preemption safe. Reported-by: Torsten Kaiser Signed-off-by: Konstantin Khlebnikov Signed-off-by: Tejun Heo --- diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 594c004..21638ae 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -722,9 +722,9 @@ do { \ __pcpu_size_call_return2(__this_cpu_add_return_, pcp, val) #endif -#define __this_cpu_sub_return(pcp, val) this_cpu_add_return(pcp, -(val)) -#define __this_cpu_inc_return(pcp) this_cpu_add_return(pcp, 1) -#define __this_cpu_dec_return(pcp) this_cpu_add_return(pcp, -1) +#define __this_cpu_sub_return(pcp, val) __this_cpu_add_return(pcp, -(val)) +#define __this_cpu_inc_return(pcp) __this_cpu_add_return(pcp, 1) +#define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1) #define __this_cpu_generic_xchg(pcp, nval) \ ({ typeof(pcp) ret__; \