tools/testing/selftests/net/bpf/Makefile: fix fatal error: 'bpf/bpf_helpers.h' file not found
Subsystems (4)
PATCH 1/1 tools/testing/selftests/net/bpf/Makefile: fix fatal error: 'bpf/bpf_helpers.h' file not found
In tools/testing/selftests run:
make -C bpf
make -C net
fatal error: 'bpf/bpf_helpers.h' file not found
Add bpf/bpf_helpers.h include path in net/bpf/Makefile.
Reported-by kernel test robot <[email protected]>
Signed-off-by Jie2x Zhou <[email protected]>
--- tools/testing/selftests/net/bpf/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/net/bpf/Makefile +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 CLANG ?= clang +CCINCLUDE += -I../bpf/tools/include CCINCLUDE += -I../../bpf CCINCLUDE += -I../../../../lib CCINCLUDE += -I../../../../../usr/include/
Signature · 1 line
2.36.1
Jakub Kicinski
maintainerQuoted 18 lines · On Thu, 14 Jul 2022 14:50:03 +0800 Jie2x Zhou wrote:
In
tools/testing/selftestsrun:
make -C bpf
make -C net
fatal error: 'bpf/bpf_helpers.h' file not foundAdd
bpf/bpf_helpers.hinclude path innet/bpf/Makefile.Reported-by kernel test robot <[email protected]>Signed-off-by Jie2x Zhou <[email protected]>--- tools/testing/selftests/net/bpf/Makefile | 1 + 1 file changed, 1 insertion(+)tools/testing/selftests/net/bpf/Makefile +0
-0
tools/testing/selftests/net/bpf/Makefile line 7
Quoted 7 lines
tools/testing/selftests/net/bpf/Makefile +1
-0@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 CLANG ?= clang +CCINCLUDE += -I../bpf/tools/include CCINCLUDE += -I../../bpf CCINCLUDE += -I../../../../lib CCINCLUDE += -I../../../../../usr/include/
Can we switch to relative paths here, somehow?
We keep adding those include paths, see 7b92aa9e6135 ("selftests net:
fix kselftest net fatal error") for example.