linux-mips
[Top] [All Lists]

[PATCH] fix build error in atomic64_cmpxchg

To: linux-mips@linux-mips.org
Subject: [PATCH] fix build error in atomic64_cmpxchg
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 10 May 2007 23:47:45 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h
index 62daa74..1b60624 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)))
 
 /**

<Prev in Thread] Current Thread [Next in Thread>