selftests/bpf: Fix endianness issue in __qspinlock declaration
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 24 Apr 2025 16:41:27 +0000 (18:41 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 Apr 2025 00:24:28 +0000 (17:24 -0700)
commitbe5521991506552c0873371694e4a2cb263e1b9c
tree0a7466d55f2d52038c38535dd44a8a6b1f44df98
parent0240e5a9431cb48f980fd44f913d7f0886b0aded
selftests/bpf: Fix endianness issue in __qspinlock declaration

Copy the big-endian field declarations from qspinlock_types.h,
otherwise some properties won't hold on big-endian systems. For
example, assigning lock->val = 1 should result in lock->locked == 1,
which is not the case there.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250424165525.154403-4-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/bpf_arena_spin_lock.h