From: Mathieu Desnoyers Date: Wed, 23 Sep 2009 23:23:48 +0000 (-0400) Subject: ppc atomic: fix atomic_dec/inc X-Git-Tag: v0.1~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8f41d19a297d21327fb88b9ecf44c2ce02075de0;p=urcu.git ppc atomic: fix atomic_dec/inc Only require 1 arg. Signed-off-by: Mathieu Desnoyers --- diff --git a/arch_atomic_ppc.h b/arch_atomic_ppc.h index 5d36cfb..4440a56 100644 --- a/arch_atomic_ppc.h +++ b/arch_atomic_ppc.h @@ -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 */