Commit cf67838c authored by Lina Wang's avatar Lina Wang Committed by Paolo Abeni

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: edae34a3 ("selftests net: add UDP GRO fraglist + bpf self-tests")
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Signed-off-by: default avatarLina Wang <lina.wang@mediatek.com>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/20220606064517.8175-1-lina.wang@mediatek.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 662a8094
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
CLANG ?= clang CLANG ?= clang
CCINCLUDE += -I../../bpf CCINCLUDE += -I../../bpf
CCINCLUDE += -I../../../lib
CCINCLUDE += -I../../../../../usr/include/ CCINCLUDE += -I../../../../../usr/include/
TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
...@@ -10,5 +11,4 @@ all: $(TEST_CUSTOM_PROGS) ...@@ -10,5 +11,4 @@ all: $(TEST_CUSTOM_PROGS)
$(OUTPUT)/%.o: %.c $(OUTPUT)/%.o: %.c
$(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@ $(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@
clean: EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)
rm -f $(TEST_CUSTOM_PROGS)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment