samples/bpf: fix include path
Subsystems (3)
PATCH 1/1 samples/bpf: fix include path
Fix the following build error:
HOSTCC samples/bpf/test_lru_dist.o../samples/bpf/test_lru_dist.c:25:22: fatal error: bpf_util.h: No such file or directory
This is due to objtree != srctree.
Use srctree, since that's where bpf_util.h is located.
--- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
samples/bpf/Makefile +1 -1
@@ -91,7 +91,7 @@ always += trace_event_kern.o always += sampleip_kern.o HOSTCFLAGS += -I$(objtree)/usr/include -HOSTCFLAGS += -I$(objtree)/tools/testing/selftests/bpf/ +HOSTCFLAGS += -I$(srctree)/tools/testing/selftests/bpf/ HOSTCFLAGS_bpf_load.o += -I$(objtree)/usr/include -Wno-unused-variable HOSTLOADLIBES_fds_example += -lelf
Signature · 1 line
2.8.0
Quoted 9 lines · Alexei Starovoitov
Fix the following build error:
HOSTCCsamples/bpf/test_lru_dist.o../samples/bpf/test_lru_dist.c:25:22: fatal error:bpf_util.h: No such file or directoryThis is due to objtree != srctree.
Use srctree, since that's wherebpf_util.his located.Fixes e00c7b216f34 ("bpf: fix multiple issues in selftest suite and samples")Signed-off-by Alexei Starovoitov <[email protected]>
Didn't run into this so far, thanks for fixing!
David Ahern
Tested-byQuoted 8 lines · Daniel Borkmann
Quoted 7 lines · Alexei Starovoitov
Fix the following build error:
HOSTCCsamples/bpf/test_lru_dist.o../samples/bpf/test_lru_dist.c:25:22: fatal error:bpf_util.h: No such file or directoryThis is due to objtree != srctree.
Use srctree, since that's wherebpf_util.his located.
Quoted 6 lines
Quoted 2 lines
Fixes e00c7b216f34 ("bpf: fix multiple issues in selftest suite and samples")Signed-off-by Alexei Starovoitov <[email protected]>Didn't run into this so far, thanks for fixing!
Acked-by Daniel Borkmann <[email protected]>
I have and this fixed it for me.
From: Alexei Starovoitov <[email protected]>
Date: Mon, 28 Nov 2016 22:07:22 -0800
Quoted 9 lines
Fix the following build error:
HOSTCCsamples/bpf/test_lru_dist.o../samples/bpf/test_lru_dist.c:25:22: fatal error:bpf_util.h: No such file or directoryThis is due to objtree != srctree.
Use srctree, since that's wherebpf_util.his located.Fixes e00c7b216f34 ("bpf: fix multiple issues in selftest suite and samples")Signed-off-by Alexei Starovoitov <[email protected]>
Applied, thanks.