]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: harness: Remove dependency on libatomic
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:24 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 21 May 2025 13:32:33 +0000 (15:32 +0200)
commit67ee52611b4d7a0da38e82409b86607c3a43fe8d
tree0308c86bc0c590b1d4f3d9beb22fb3ef26ef01a9
parent5cccec7239c4765f5339951b1aa9063b80cfc29f
selftests: harness: Remove dependency on libatomic

__sync_bool_compare_and_swap() is deprecated and requires libatomic on
GCC. Compiler toolchains don't necessarily have libatomic available, so
avoid this requirement by using atomics that don't need libatomic.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-6-ee4dd5257135@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/kselftest_harness.h