selftests/bpf: Enable kptr_xchg_inline test on LoongArch

Enable the kptr_xchg_inline functional test on LoongArch64 now that the
BPF JIT can inline bpf_kptr_xchg() with correct memory ordering.

Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
Acked-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
Chenguang Zhao 2026-08-17 22:07:49 +08:00 committed by Huacai Chen
parent e7103e5e3b
commit 6afb035996

View File

@ -14,7 +14,8 @@ void test_kptr_xchg_inline(void)
int err;
#if !(defined(__x86_64__) || defined(__aarch64__) || \
(defined(__riscv) && __riscv_xlen == 64))
(defined(__riscv) && __riscv_xlen == 64) || \
(defined(__loongarch__) && __loongarch_grlen == 64))
test__skip();
return;
#endif