ppc atomic: fix atomic_dec/inc
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 23 Sep 2009 23:23:48 +0000 (19:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 23 Sep 2009 23:23:48 +0000 (19:23 -0400)
Only require 1 arg.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
arch_atomic_ppc.h

index 5d36cfb76bda0099924554798d66ad392596d988..4440a56648d2f6914187473945cf634fdc09047f 100644 (file)
@@ -225,8 +225,8 @@ unsigned long _atomic_add_return(void *addr, unsigned long val,
 #define atomic_add(addr, v)            (void)atomic_add_return((addr), (v))
 #define atomic_sub(addr, v)            (void)atomic_sub_return((addr), (v))
 
-#define atomic_inc(addr, v)            atomic_add((addr), 1)
-#define atomic_dec(addr, v)            atomic_add((addr), -1)
+#define atomic_inc(addr)               atomic_add((addr), 1)
+#define atomic_dec(addr)               atomic_add((addr), -1)
 
 #endif /* #ifndef _INCLUDE_API_H */
 
This page took 0.026924 seconds and 4 git commands to generate.