From: Prashant Bhole Date: Fri, 14 Jun 2019 06:43:18 +0000 (+0900) Subject: samples/bpf: fix include path in Makefile X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b552d33c80a967a4f653b53243562f1bd4950e8c;p=linux.git samples/bpf: fix include path in Makefile Recent commit included libbpf.h in selftests/bpf/bpf_util.h. Since some samples use bpf_util.h and samples/bpf/Makefile doesn't have libbpf.h path included, build was failing. Let's add the path in samples/bpf/Makefile. Signed-off-by: Prashant Bhole Signed-off-by: Daniel Borkmann --- diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 9eb5d733f575d..34bc7e17c994a 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -170,7 +170,7 @@ always += ibumad_kern.o always += hbm_out_kern.o KBUILD_HOSTCFLAGS += -I$(objtree)/usr/include -KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/ +KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/bpf/ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/testing/selftests/bpf/ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/ -I$(srctree)/tools/include KBUILD_HOSTCFLAGS += -I$(srctree)/tools/perf