aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/atomic.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-11-16 13:03:10 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-16 13:03:10 -0500
commit49ee57a3295a227b6a02785f75ccd521e493e983 (patch)
tree3e1ab74e95d1599c6944f24fc32a30e601554827 /include/asm-arm/atomic.h
parent1b12050f17460dc312cfd8cc59c79e181b23062b (diff)
[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>
Diffstat (limited to 'include/asm-arm/atomic.h')
-rw-r--r--include/asm-arm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
index d8ba0a9eb085..d586f65c8228 100644
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -83,7 +83,7 @@ static inline int atomic_sub_return(int i, atomic_t *v)
83 83
84static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new) 84static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
85{ 85{
86 u32 oldval, res; 86 unsigned long oldval, res;
87 87
88 do { 88 do {
89 __asm__ __volatile__("@ atomic_cmpxchg\n" 89 __asm__ __volatile__("@ atomic_cmpxchg\n"