Re: [PATCH 11/18] locking/atomic: riscv: fix atomic64_sub_if_positive() offset argument

2019-05-22 Thread Palmer Dabbelt
On Wed, 22 May 2019 06:22:43 PDT (-0700), mark.rutl...@arm.com wrote: Presently the riscv implementation of atomic64_sub_if_positive() takes a 32-bit offset value rather than a 64-bit offset value as it should do. Thus, if called with a 64-bit offset, the value will be unexpectedly truncated to

[PATCH 11/18] locking/atomic: riscv: fix atomic64_sub_if_positive() offset argument

2019-05-22 Thread Mark Rutland
Presently the riscv implementation of atomic64_sub_if_positive() takes a 32-bit offset value rather than a 64-bit offset value as it should do. Thus, if called with a 64-bit offset, the value will be unexpectedly truncated to 32 bits. Fix this by taking the offset as a long rather than an int.