projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b12050
)
[ARM] Use unsigned long not u32 in atomic_cmpxchg
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Wed, 16 Nov 2005 18:03:10 +0000
(18:03 +0000)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/include/asm-arm/atomic.h
b/include/asm-arm/atomic.h
index d8ba0a9eb0852b4d9927ddc2c2cd20141fd3d063..d586f65c8228ee8bad32aaf945edc47ee727e731 100644
(file)
--- 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)
static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
{
- u
32
oldval, res;
+ u
nsigned long
oldval, res;
do {
__asm__ __volatile__("@ atomic_cmpxchg\n"