* [PATCH] docs: fix include path causing kselftest net fatal error
@ 2022-06-28 2:01 Coleman Dietsch
0 siblings, 0 replies; 2+ messages in thread
From: Coleman Dietsch @ 2022-06-28 2:01 UTC (permalink / raw)
To: Shuah Khan, linux-kernel-mentees, Eric Dumazet, davem, kuba,
pabeni, ast, daniel, andrii, kafai
[-- Attachment #1.1: Type: text/plain, Size: 1034 bytes --]
The incorrect path is causing the following error when trying to run net
kselftests:
clang -O2 -target bpf -c bpf/nat6to4.c -I../../bpf -I../../../lib
-I../../../../../usr/include/ -o
/home/cole/Development/linux/tools/testing/selftests/net/bpf/nat6to4.o
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.
Signed-off-by: Coleman Dietsch <dietschc@csp.edu>
---
tools/testing/selftests/net/bpf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/bpf/Makefile
b/tools/testing/selftests/net/bpf/Makefile
index 8a69c91fcca0..8ccaf8732eb2 100644
--- a/tools/testing/selftests/net/bpf/Makefile
+++ b/tools/testing/selftests/net/bpf/Makefile
@@ -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
--
2.34.1
[-- Attachment #1.2: Type: text/html, Size: 1211 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] docs: fix include path causing kselftest net fatal error
@ 2022-06-28 0:08 Coleman Dietsch
0 siblings, 0 replies; 2+ messages in thread
From: Coleman Dietsch @ 2022-06-28 0:08 UTC (permalink / raw)
To: Shuah Khan, linux-kernel-mentees, Eric Dumazet, davem, kuba,
pabeni, ast, daniel, andrii, kafai
[-- Attachment #1.1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #1.2: Type: text/html, Size: 26 bytes --]
[-- Attachment #2: 0001-Fix-include-path-causing-kselftest-net-fatal-error.patch --]
[-- Type: text/x-patch, Size: 1256 bytes --]
From 1e85b50c4ecee921d08b7074360228e8aa51ac71 Mon Sep 17 00:00:00 2001
From: Coleman Dietsch <dietschc@csp.edu>
Date: Mon, 27 Jun 2022 18:38:42 -0500
Subject: [PATCH] Fix include path causing kselftest net fatal error
The incorrect path is causing the following error when trying to run net
kselftests:
clang -O2 -target bpf -c bpf/nat6to4.c -I../../bpf -I../../../lib -I../../../../../usr/include/ -o /home/cole/Development/linux/tools/testing/selftests/net/bpf/nat6to4.o
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.
Signed-off-by: Coleman Dietsch <dietschc@csp.edu>
---
tools/testing/selftests/net/bpf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/bpf/Makefile b/tools/testing/selftests/net/bpf/Makefile
index 8a69c91fcca0..8ccaf8732eb2 100644
--- a/tools/testing/selftests/net/bpf/Makefile
+++ b/tools/testing/selftests/net/bpf/Makefile
@@ -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
--
2.34.1
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-28 2:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 2:01 [PATCH] docs: fix include path causing kselftest net fatal error Coleman Dietsch
-- strict thread matches above, loose matches on Subject: below --
2022-06-28 0:08 Coleman Dietsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).