diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-11-29 09:07:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 20:42:28 +0300 |
commit | 9bee294f53ef588fdc909e53d7273d428e2887aa (patch) | |
tree | 2ee898651f653666b479701287ec8c9b5f66c50d /samples/bpf/Makefile | |
parent | 763dfa276c9a280b92543b1862954dba98ef2682 (diff) | |
download | linux-9bee294f53ef588fdc909e53d7273d428e2887aa.tar.xz |
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.
Fixes: e00c7b216f34 ("bpf: fix multiple issues in selftest suite and samples")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/Makefile')
-rw-r--r-- | samples/bpf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 22b6407efa4f..3ceb5a9d86df 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -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 |