OSDN Git Service

samples/bpf: fix include path
authorAlexei Starovoitov <ast@fb.com>
Tue, 29 Nov 2016 06:07:22 +0000 (22:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 17:42:28 +0000 (12:42 -0500)
commit9bee294f53ef588fdc909e53d7273d428e2887aa
tree2ee898651f653666b479701287ec8c9b5f66c50d
parent763dfa276c9a280b92543b1862954dba98ef2682
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>
samples/bpf/Makefile