X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fasm-generic%2Fatomic-long.h;h=b7babf0206b8709bf751506104a06748a0dcdd65;hb=ba71e17269633ea36e776d744d5cc0fcb5a41f93;hp=76e27d66c055ba60cfd4056436761198760f1e47;hpb=72099ed2719fc5829bd79c6ca9d1783ed026eb37;p=firefly-linux-kernel-4.4.55.git diff --git a/include/asm-generic/atomic-long.h b/include/asm-generic/atomic-long.h index 76e27d66c055..b7babf0206b8 100644 --- a/include/asm-generic/atomic-long.h +++ b/include/asm-generic/atomic-long.h @@ -134,7 +134,7 @@ static inline long atomic_long_add_unless(atomic_long_t *l, long a, long u) #define atomic_long_cmpxchg(l, old, new) \ (atomic64_cmpxchg((atomic64_t *)(l), (old), (new))) #define atomic_long_xchg(v, new) \ - (atomic64_xchg((atomic64_t *)(l), (new))) + (atomic64_xchg((atomic64_t *)(v), (new))) #else /* BITS_PER_LONG == 64 */