[PATCH v2 4/5] selftests/futex: introduce the declaration of atomic_t from types.h

From: Licay
Date: Tue Dec 16 2025 - 04:22:13 EST


> Introduce the header files specifically prepared for test programs
> from the tools/include directory. And solve the problem that
> atomic_read and atomic_set may not be safe in a multi - threaded
> environment.
>
> Signed-off-by: Yuwen Chen <ywen.chen@xxxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512112344.gsyPl2ag-lkp@xxxxxxxxx/
> ---
> .../selftests/futex/functional/Makefile | 2 +-
> .../testing/selftests/futex/include/atomic.h | 25 +++++++++----------
> 2 files changed, 13 insertions(+), 14 deletions(-)
Reviewed-by: Licay <licayy@xxxxxxxxxxx>