]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
percpu: fix __this_cpu_{sub,inc,dec}_return() definition
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Tue, 28 Feb 2012 20:41:12 +0000 (00:41 +0400)
committerTejun Heo <tj@kernel.org>
Sun, 4 Mar 2012 17:34:15 +0000 (09:34 -0800)
This patch adds missed "__" prefixes, otherwise these functions
works as irq/preemption safe.

Reported-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/percpu.h

index 594c0040fdd883dfcf48365dea5fe7347801493f..21638ae14e07c71a005d6cfcea61958e8cd8f970 100644 (file)
@@ -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__;                                              \