[PATCH bpf-next 0/3] Fix some build errors for bpf selftest on LoongArch

From: Tiezhu Yang
Date: Wed Feb 22 2023 - 06:55:32 EST


Tiezhu Yang (3):
libbpf: Use struct user_pt_regs to define __PT_REGS_CAST() for
LoongArch
selftests/bpf: Check __TARGET_ARCH_loongarch if target is bpf for
LoongArch
selftests/bpf: Check __ARCH_WANT_SET_GET_RLIMIT before
syscall(__NR_getrlimit)

tools/include/uapi/asm/bitsperlong.h | 2 +-
tools/lib/bpf/bpf_tracing.h | 2 ++
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c | 2 ++
3 files changed, 5 insertions(+), 1 deletion(-)

--
2.1.0