Skip to content

BPF kselftest cross-build/RISC-V fixes

Björn Töpel bpf linux-kselftest linux-riscv lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: Add F_NEEDS_EFFICIENT_UNALIGNED_ACCESS to some teststools/testing/selftests/bpf/verifier/atomic_cmpxchg.c tools/testing/selftests/bpf/verifier/ctx_skb.c tools/testing/selftests/bpf/verifier/jmp32.c +2 more+14 -10 replies
2/2selftests/bpf: Honor $(O) when figuring out pathstools/testing/selftests/bpf/Makefile+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] BPF kselftest cross-build/RISC-V fixes

From: Björn Töpel <[email protected]>

This series has two minor fixes, found when cross-compiling for the RISC-V architecture.

Some RISC-V systems do not define HAVE_EFFICIENT_UNALIGNED_ACCESS, which made some of tests bail out. Fix the failing tests by adding F_NEEDS_EFFICIENT_UNALIGNED_ACCESS.

...and some RISC-V systems *do* define HAVE_EFFICIENT_UNALIGNED_ACCESS. In this case the autoconf.h was not correctly picked up by the build system.

Cheers,
Björn

Björn Töpel (2):
selftests/bpf: Add F_NEEDS_EFFICIENT_UNALIGNED_ACCESS to some tests selftests/bpf: Honor $(O) when figuring out paths

 tools/testing/selftests/bpf/Makefile                  | 4 ++++
 tools/testing/selftests/bpf/verifier/atomic_cmpxchg.c | 1 +
 tools/testing/selftests/bpf/verifier/ctx_skb.c        | 2 ++
 tools/testing/selftests/bpf/verifier/jmp32.c          | 8 ++++++++
 tools/testing/selftests/bpf/verifier/map_kptr.c       | 2 ++
 tools/testing/selftests/bpf/verifier/precise.c        | 2 +-
 6 files changed, 18 insertions(+), 1 deletion(-)

base-commit: a94098d490e17d652770f2309fcb9b46bc4cf864

Signature · 1 line
2.39.2