Re: [PATCH] asm-generic: Fix 32 bit __generic_cmpxchg_local

From: Arnd Bergmann
Date: Fri Jan 05 2024 - 17:25:53 EST


On Thu, Jan 4, 2024, at 10:40, Stuart Menefy wrote:
> From: David McKay <david.mckay@xxxxxxxxxxx>
>
> Commit 656e9007ef58 ("asm-generic: avoid __generic_cmpxchg_local
> warnings") introduced a typo that means the code is incorrect for 32 bit
> values. It will work fine for postive numbers, but will fail for
> negative numbers on a system where longs are 64 bit.
>
> Fixes: 656e9007ef58 ("asm-generic: avoid __generic_cmpxchg_local warnings")
> Signed-off-by: David McKay <david.mckay@xxxxxxxxxxx>
> Signed-off-by: Stuart Menefy <stuart.menefy@xxxxxxxxxxx>

Applied to the asm-generic tree, thanks a lot!

arnd