]> Git Repo - J-linux.git/commitdiff
selftests net: fix bpf build error
authorLina Wang <[email protected]>
Mon, 6 Jun 2022 06:45:17 +0000 (14:45 +0800)
committerPaolo Abeni <[email protected]>
Tue, 7 Jun 2022 11:19:51 +0000 (13:19 +0200)
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 <[email protected]>
Signed-off-by: Lina Wang <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
tools/testing/selftests/net/bpf/Makefile

index f91bf14bbee7be927e92cff841b39cbcba278903..8a69c91fcca07eb69322b17450f9079cfa4d336d 100644 (file)
@@ -2,6 +2,7 @@
 
 CLANG ?= clang
 CCINCLUDE += -I../../bpf
+CCINCLUDE += -I../../../lib
 CCINCLUDE += -I../../../../../usr/include/
 
 TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
@@ -10,5 +11,4 @@ all: $(TEST_CUSTOM_PROGS)
 $(OUTPUT)/%.o: %.c
        $(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@
 
-clean:
-       rm -f $(TEST_CUSTOM_PROGS)
+EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)
This page took 0.052422 seconds and 4 git commands to generate.