]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Remove TLD_READ_ONCE() in the user space header
authorAmery Hung <ameryhung@gmail.com>
Tue, 31 Mar 2026 21:35:54 +0000 (14:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 2 Apr 2026 22:11:08 +0000 (15:11 -0700)
commit0b481a6915ed649f12ae0a9625206781bfdcc705
tree56c11115e262ae1c237bdd0b0533994f35558bb7
parent80aa8e9c64d0351f8bb215816e1b2277240c9e11
selftests/bpf: Remove TLD_READ_ONCE() in the user space header

TLD_READ_ONCE() is redundant as the only reference passed to it is
defined as _Atomic. The load is guaranteed to be atomic in C11 standard
(6.2.6.1). Drop the macro.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Acked-by: Sun Jian <sun.jian.kdev@gmail.com>
Link: https://lore.kernel.org/r/20260331213555.1993883-5-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/task_local_data.h
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c