Browse Source

[ARM] Use unsigned long not u32 in atomic_cmpxchg

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>
Russell King 19 years ago
parent
commit
49ee57a329
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/asm-arm/atomic.h

+ 1 - 1
include/asm-arm/atomic.h

@@ -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)
 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
 {
 {
-	u32 oldval, res;
+	unsigned long oldval, res;
 
 
 	do {
 	do {
 		__asm__ __volatile__("@ atomic_cmpxchg\n"
 		__asm__ __volatile__("@ atomic_cmpxchg\n"