Skip to contentSkip to conversation

percpu: fix __this_cpu_{sub,inc,dec}_return() definition

PATCH Applied Konstantin Khlebnikov 2 participants 2 messages Feb 28, 2012 – Mar 4, 2012 Per-CPU memory allocator

lore
Share & tools
lore
#0 lore raw

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.

---
 include/linux/percpu.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/linux/percpu.h +3 -3
index 5903f73..2b9f82c 100644
@@ -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__;						\