From 7b239bb1068eda3f7e8befd9b43671093c206f0e Mon Sep 17 00:00:00 2001 From: Atsushi Nemoto Date: Thu, 10 May 2007 23:47:45 +0900 Subject: [MIPS] Fix build error in atomic64_cmpxchg Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- include/asm-mips/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asm-mips/atomic.h') diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h index 62daa746a9c..1b60624dab7 100644 --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h @@ -689,7 +689,7 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) } #define atomic64_cmpxchg(v, o, n) \ - (((__typeof__((v)->counter)))cmpxchg(&((v)->counter), (o), (n))) + ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) #define atomic64_xchg(v, new) (xchg(&((v)->counter), (new))) /** -- cgit v1.2.3