Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests net: fix bpf build error

bpf_helpers.h has been moved to tools/lib/bpf since 5.10, so add more
including path.

Fixes: edae34a3ed92 ("selftests net: add UDP GRO fraglist + bpf self-tests")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Lina Wang <lina.wang@mediatek.com>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/20220606064517.8175-1-lina.wang@mediatek.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Lina Wang and committed by
Paolo Abeni
cf67838c 662a8094

+2 -2
+2 -2
tools/testing/selftests/net/bpf/Makefile
··· 2 2 3 3 CLANG ?= clang 4 4 CCINCLUDE += -I../../bpf 5 + CCINCLUDE += -I../../../lib 5 6 CCINCLUDE += -I../../../../../usr/include/ 6 7 7 8 TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o ··· 11 10 $(OUTPUT)/%.o: %.c 12 11 $(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@ 13 12 14 - clean: 15 - rm -f $(TEST_CUSTOM_PROGS) 13 + EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)