Skip to content

Commit cf67838

Browse files
pigfavorPaolo Abeni
authored andcommitted
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: edae34a ("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>
1 parent 662a809 commit cf67838

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/net/bpf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
CLANG ?= clang
44
CCINCLUDE += -I../../bpf
5+
CCINCLUDE += -I../../../lib
56
CCINCLUDE += -I../../../../../usr/include/
67

78
TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
@@ -10,5 +11,4 @@ all: $(TEST_CUSTOM_PROGS)
1011
$(OUTPUT)/%.o: %.c
1112
$(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@
1213

13-
clean:
14-
rm -f $(TEST_CUSTOM_PROGS)
14+
EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)

0 commit comments

Comments
 (0)