linux/include/asm-generic
David McKay 6e007fac81 asm-generic: Fix 32 bit __generic_cmpxchg_local
[ Upstream commit d93cca2f3109f88c94a32d3322ec8b2854a9c339 ]

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@codasip.com>
Signed-off-by: Stuart Menefy <stuart.menefy@codasip.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:19 -08:00
..
2022-02-25 09:36:06 +01:00
2023-02-13 22:13:29 +01:00
2023-05-18 11:07:54 +02:00
2021-12-11 23:31:51 +01:00
2022-08-04 15:10:55 -07:00
2020-01-23 10:41:16 -08:00
2022-07-22 17:34:57 -05:00
2022-05-26 10:50:30 -07:00
2023-08-21 13:37:52 -07:00
2022-02-25 09:36:06 +01:00