[PATCH v2 3/5] selftests/futex: read atomic variable value with atomic_read
From: Licay
Date: Tue Dec 16 2025 - 04:22:21 EST
> Directly reading the internal value of atomic_t externally does
> not meet the encapsulation requirements. A new function
> atomic_read is added to obtain the value of an atomic variable.
>
> Signed-off-by: Yuwen Chen <ywen.chen@xxxxxxxxxxx>
> ---
> .../selftests/futex/functional/futex_requeue_pi.c | 12 ++++++------
> .../functional/futex_requeue_pi_signal_restart.c | 4 ++--
> tools/testing/selftests/futex/include/atomic.h | 12 ++++++++++++
> 3 files changed, 20 insertions(+), 8 deletions(-)
Reviewed-by: Licay <licayy@xxxxxxxxxxx>