Re: [PATCH v3 2/7] x86: use s64* for old arg of atomic64_try_cmpxchg()

2017-06-16 Thread Andrey Ryabinin
On 06/06/2017 01:11 PM, Dmitry Vyukov wrote: > atomic64_try_cmpxchg() declares old argument as long*, > this makes it impossible to use it in portable code. > If caller passes long*, it becomes 32-bits on 32-bit arches. > If caller passes s64*, it does not compile on x86_64. > > Change type of old

[PATCH v3 2/7] x86: use s64* for old arg of atomic64_try_cmpxchg()

2017-06-06 Thread Dmitry Vyukov
atomic64_try_cmpxchg() declares old argument as long*, this makes it impossible to use it in portable code. If caller passes long*, it becomes 32-bits on 32-bit arches. If caller passes s64*, it does not compile on x86_64. Change type of old arg to s64*. Signed-off-by: Dmitry Vyukov Cc: Mark Rut