Skip to contentSkip to conversation

selftests net: fix bpf build error

PATCH Applied Lina Wang 3 participants 3 messages Jun 6, 2022 – Jun 7, 2022

Subsystems (5)
lore
Share & tools
lore

Lina Wang

author
#0 lore raw

PATCH v3 1/1 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")
---
 tools/testing/selftests/net/bpf/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/net/bpf/Makefile +2 -2
index f91bf14bbee7..8a69c91fcca0 100644
@@ -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)
Signature · 1 line
2.18.0
#2 lore raw
In reply to Lina Wang
This patch was applied to netdev/net.git (master) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <[email protected]>:

Quoted 9 lines · On Mon, 6 Jun 2022 14:45:17 +0800 you wrote:

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")

[...]

Here is the summary with links:
- [v3] selftests net: fix bpf build error

    https://git.kernel.org/netdev/net/c/cf67838c4422

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html