percpu: fix __this_cpu_{sub,inc,dec}_return() definition
PATCH 1/1 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 <[email protected]>
Signed-off-by Konstantin Khlebnikov <[email protected]>
--- include/linux/percpu.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
include/linux/percpu.h +3 -3
@@ -668,9 +668,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__; \
Quoted 5 lines · Konstantin Khlebnikov
This patch adds missed "__" prefixes, otherwise these functions works as irq/preemption safe.
Reported-by Torsten Kaiser <[email protected]>Signed-off-by Konstantin Khlebnikov <[email protected]>
Applied to for-3.3-fixes. Thank you.
Signature · 1 line
tejun