Commit aa6f14796630c8b03c11e782484aec2aee05e671
Committed by
Linus Torvalds
1 parent
80bba1290a
Exists in
master
and in
39 other branches
atomic: fix a typo in atomic_long_xchg()
atomic_long_xchg() is not correctly defined for 32bit arches. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
include/asm-generic/atomic.h
... | ... | @@ -251,7 +251,7 @@ |
251 | 251 | #define atomic_long_cmpxchg(l, old, new) \ |
252 | 252 | (atomic_cmpxchg((atomic_t *)(l), (old), (new))) |
253 | 253 | #define atomic_long_xchg(v, new) \ |
254 | - (atomic_xchg((atomic_t *)(l), (new))) | |
254 | + (atomic_xchg((atomic_t *)(v), (new))) | |
255 | 255 | |
256 | 256 | #endif /* BITS_PER_LONG == 64 */ |
257 | 257 |