diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2012-02-28 15:41:12 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-03-04 12:34:15 -0500 |
commit | adb795062f89b8d67d295ee25e04034bccce6779 (patch) | |
tree | 3979c7896bb41879b483e99b35adb5d8a3773276 /include/linux/percpu.h | |
parent | e920d5971d706290c5a6281f719e16c25021f964 (diff) |
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 <just.for.lkml@googlemail.com>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 594c0040fdd8..21638ae14e07 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -722,9 +722,9 @@ do { \ | |||
722 | __pcpu_size_call_return2(__this_cpu_add_return_, pcp, val) | 722 | __pcpu_size_call_return2(__this_cpu_add_return_, pcp, val) |
723 | #endif | 723 | #endif |
724 | 724 | ||
725 | #define __this_cpu_sub_return(pcp, val) this_cpu_add_return(pcp, -(val)) | 725 | #define __this_cpu_sub_return(pcp, val) __this_cpu_add_return(pcp, -(val)) |
726 | #define __this_cpu_inc_return(pcp) this_cpu_add_return(pcp, 1) | 726 | #define __this_cpu_inc_return(pcp) __this_cpu_add_return(pcp, 1) |
727 | #define __this_cpu_dec_return(pcp) this_cpu_add_return(pcp, -1) | 727 | #define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1) |
728 | 728 | ||
729 | #define __this_cpu_generic_xchg(pcp, nval) \ | 729 | #define __this_cpu_generic_xchg(pcp, nval) \ |
730 | ({ typeof(pcp) ret__; \ | 730 | ({ typeof(pcp) ret__; \ |