From: Atsushi Nemoto Date: Thu, 10 May 2007 14:47:45 +0000 (+0900) Subject: [MIPS] Fix build error in atomic64_cmpxchg X-Git-Tag: v2.6.22-rc1~30^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7b239bb1068eda3f7e8befd9b43671093c206f0e;p=linux-2.6-omap-h63xx.git [MIPS] Fix build error in atomic64_cmpxchg Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- 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))) /**