bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next] samples/bpf: fix include path in Makefile
@ 2019-06-14  6:43 Prashant Bhole
  2019-06-14 23:19 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: Prashant Bhole @ 2019-06-14  6:43 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann; +Cc: Prashant Bhole, netdev, bpf

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 <prashantbhole.linux@gmail.com>
---
 samples/bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile
index 9eb5d733f575..34bc7e17c994 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
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH bpf-next] samples/bpf: fix include path in Makefile
  2019-06-14  6:43 [PATCH bpf-next] samples/bpf: fix include path in Makefile Prashant Bhole
@ 2019-06-14 23:19 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2019-06-14 23:19 UTC (permalink / raw)
  To: Prashant Bhole, Alexei Starovoitov; +Cc: netdev, bpf

On 06/14/2019 08:43 AM, Prashant Bhole wrote:
> 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 <prashantbhole.linux@gmail.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-14 23:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14  6:43 [PATCH bpf-next] samples/bpf: fix include path in Makefile Prashant Bhole
2019-06-14 23:19 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).