aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorBjörn Töpel <[email protected]>2020-11-18 07:16:38 +0000
committerAndrii Nakryiko <[email protected]>2020-11-19 01:44:59 +0000
commit6016df8fe874e1cf36f6357d71438b384198ce06 (patch)
treec7ee41ff7462f2ddc7db52b15d3f818b7fa7c14c /tools/bpf/bpftool/prog.c
parentbpf: Add bpf_ktime_get_coarse_ns helper (diff)
downloadkernel-6016df8fe874e1cf36f6357d71438b384198ce06.tar.gz
kernel-6016df8fe874e1cf36f6357d71438b384198ce06.zip
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Luke Nelson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions