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:
80bba12
)
atomic: fix a typo in atomic_long_xchg()
author
Eric Dumazet
<
[email protected]
>
Tue, 9 Dec 2008 21:14:25 +0000
(13:14 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 10 Dec 2008 16:01:53 +0000
(08:01 -0800)
atomic_long_xchg() is not correctly defined for 32bit arches.
Signed-off-by: Eric Dumazet <
[email protected]
>
Cc: Mathieu Desnoyers <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-generic/atomic.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/atomic.h
b/include/asm-generic/atomic.h
index 4ec0a296bdec8413394dbecedbf779bb19bfcf4b..7abdaa91ccd3738ea7e8633f16c78f3031ce15bf 100644
(file)
--- a/
include/asm-generic/atomic.h
+++ b/
include/asm-generic/atomic.h
@@
-251,7
+251,7
@@
static inline long atomic_long_add_unless(atomic_long_t *l, long a, long u)
#define atomic_long_cmpxchg(l, old, new) \
(atomic_cmpxchg((atomic_t *)(l), (old), (new)))
#define atomic_long_xchg(v, new) \
- (atomic_xchg((atomic_t *)(
l
), (new)))
+ (atomic_xchg((atomic_t *)(
v
), (new)))
#endif /* BITS_PER_LONG == 64 */