Skip to content

Commit

Permalink
atomic: fix a typo in atomic_long_xchg()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Eric Dumazet authored and torvalds committed Dec 10, 2008
1 parent 80bba12 commit aa6f147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit aa6f147

Please sign in to comment.