Skip to contentSkip to conversation

selftests net: fix kselftest net fatal error

PATCH Applied Coleman Dietsch 2 participants 2 messages Jun 28, 2022 – Jun 30, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests net: fix kselftest net fatal error

The incorrect path is causing the following error when trying to run net kselftests:

In file included from bpf/nat6to4.c:43:
../../../lib/bpf/bpf_helpers.h:11:10: fatal error: 'bpf_helper_defs.h' file not found

         ^~~~~~~~~~~~~~~~~~~

1 error generated.

---
 tools/testing/selftests/net/bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/bpf/Makefile +1 -1
index 8a69c91fcca0..8ccaf8732eb2 100644
@@ -2,7 +2,7 @@
 
 CLANG ?= clang
 CCINCLUDE += -I../../bpf
-CCINCLUDE += -I../../../lib
+CCINCLUDE += -I../../../../lib
 CCINCLUDE += -I../../../../../usr/include/
 
 TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 9 lines · On Tue, 28 Jun 2022 12:47:44 -0500 you wrote:

The incorrect path is causing the following error when trying to run net kselftests:

In file included from bpf/nat6to4.c:43:
../../../lib/bpf/bpf_helpers.h:11:10: fatal error: 'bpf_helper_defs.h' file not found

         ^~~~~~~~~~~~~~~~~~~

1 error generated.

[...]

Here is the summary with links:
- selftests net: fix kselftest net fatal error

    https://git.kernel.org/netdev/net/c/7b92aa9e6135

You are awesome, thank you!

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