]> www.infradead.org Git - users/hch/misc.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>
Tue, 13 May 2025 05:35:50 +0000 (07:35 +0200)
commitf129689db5703c0c92989929d906e9b793415cc8
treea4ac410d34314117077fc27bbcfaf8709ce3f391
parentb8f2b708110fd5d28407171509fa07fd572ced07
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