LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/4] samples/kdbus: drop wrong include
@ 2015-03-16  9:17 David Herrmann
  2015-03-16  9:17 ` [PATCH 2/4] Documentation/kdbus: fix out-of-tree builds David Herrmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Herrmann @ 2015-03-16  9:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH, daniel, tixxdz, David Herrmann

There is no reason to use ./include/uapi/ directly from samples. If your
system headers are not up-to-date, you _need_ to run "make
headers-install" (which will install them to ./usr/ in your kernel tree)
before building the examples. Otherwise, you will get warnings and build
failures.

Once ./usr/ is updated with the correct headers, it contains everything we
need, so drop -Iinclude/uapi from the kdbus-workers CFLAGS.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
---
 samples/kdbus/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile
index eee9b9a..e714602 100644
--- a/samples/kdbus/Makefile
+++ b/samples/kdbus/Makefile
@@ -5,7 +5,5 @@ hostprogs-y += kdbus-workers
 
 always := $(hostprogs-y)
 
-HOSTCFLAGS_kdbus-workers.o +=		\
-	-I$(objtree)/usr/include/	\
-	-I$(objtree)/include/uapi/
+HOSTCFLAGS_kdbus-workers.o += -I$(objtree)/usr/include
 HOSTLOADLIBES_kdbus-workers := -lrt
-- 
2.3.2


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

end of thread, other threads:[~2015-03-16 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16  9:17 [PATCH 1/4] samples/kdbus: drop wrong include David Herrmann
2015-03-16  9:17 ` [PATCH 2/4] Documentation/kdbus: fix out-of-tree builds David Herrmann
2015-03-16  9:17 ` [PATCH 3/4] Documentation/kdbus: support quiet builds David Herrmann
2015-03-16  9:17 ` [PATCH 4/4] selftests/kdbus: fix gitignore David Herrmann
2015-03-16 19:55 ` [PATCH 1/4] samples/kdbus: drop wrong include Greg KH

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).