[ARM] Use unsigned long not u32 in atomic_cmpxchg
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 16 Nov 2005 18:03:10 +0000 (18:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 Nov 2005 18:03:10 +0000 (18:03 +0000)
Since atomic.h does not include types.h, u32 may not be defined.
Since atomics are supposed to work on unsigned long quantities,
use unsigned long instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/atomic.h

index d8ba0a9eb0852b4d9927ddc2c2cd20141fd3d063..d586f65c8228ee8bad32aaf945edc47ee727e731 100644 (file)
@@ -83,7 +83,7 @@ static inline int atomic_sub_return(int i, atomic_t *v)
 
 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
 {
-       u32 oldval, res;
+       unsigned long oldval, res;
 
        do {
                __asm__ __volatile__("@ atomic_cmpxchg\n"