summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_verifier.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@gmail.com>2020-11-18 10:16:38 +0300
committerAndrii Nakryiko <andrii@kernel.org>2020-11-19 04:44:59 +0300
commit6016df8fe874e1cf36f6357d71438b384198ce06 (patch)
treec7ee41ff7462f2ddc7db52b15d3f818b7fa7c14c /tools/testing/selftests/bpf/test_verifier.c
parentd055126180564a57fe533728a4e93d0cb53d49b3 (diff)
downloadlinux-6016df8fe874e1cf36f6357d71438b384198ce06.tar.xz
selftests/bpf: Fix broken riscv build
The selftests/bpf Makefile includes system include directories from the host, when building BPF programs. On RISC-V glibc requires that __riscv_xlen is defined. This is not the case for "clang -target bpf", which messes up __WORDSIZE (errno.h -> ... -> wordsize.h) and breaks the build. By explicitly defining __risc_xlen correctly for riscv, we can workaround this. Fixes: 167381f3eac0 ("selftests/bpf: Makefile fix "missing" headers on build with -idirafter") Signed-off-by: Björn Töpel <bjorn.topel@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Luke Nelson <luke.r.nels@gmail.com> Link: https://lore.kernel.org/bpf/20201118071640.83773-2-bjorn.topel@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_verifier.c')
0 files changed, 0 insertions, 0 deletions