locking/local, arch: Rewrite local_add_unless() as a static inline function
authorUros Bizjak <ubizjak@gmail.com>
Mon, 31 Jul 2023 08:42:23 +0000 (10:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 4 Oct 2023 09:38:11 +0000 (11:38 +0200)
commit5e0eb67974e88dbaded765278a3ffe7af33e3b22
tree25a10882e7c17e57798a4187a40f42b9c5ac5cb5
parent8788c6c2feb3600ba1a2f84ac5d258af4a284cea
locking/local, arch: Rewrite local_add_unless() as a static inline function

Rewrite local_add_unless() as a static inline function with boolean
return value, similar to the arch_atomic_add_unless() arch fallbacks.

The function is currently unused.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230731084458.28096-1-ubizjak@gmail.com
arch/alpha/include/asm/local.h
arch/loongarch/include/asm/local.h
arch/mips/include/asm/local.h
arch/powerpc/include/asm/local.h
arch/x86/include/asm/local.h