summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/atomic.h
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-12-09 22:14:25 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-10 17:01:53 +0100
commitaa6f14796630c8b03c11e782484aec2aee05e671 (patch)
tree7354980444c6e3adab9d17f97abed4417bfa8d7e /include/asm-generic/atomic.h
parentmm: no get_user/put_user while holding mmap_sem in do_pages_stat? (diff)
downloadlinux-aa6f14796630c8b03c11e782484aec2aee05e671.tar.xz
linux-aa6f14796630c8b03c11e782484aec2aee05e671.zip
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>
Diffstat (limited to 'include/asm-generic/atomic.h')
-rw-r--r--include/asm-generic/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h
index 4ec0a296bdec..7abdaa91ccd3 100644
--- 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 */