@@ -357,8 +357,12 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
-LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \
- -Iarch/$(hdr-arch)/include/generated -Iinclude \
+LINUXINCLUDE := \
+ -I$(srctree)/arch/$(hdr-arch)/include \
+ -Iarch/$(hdr-arch)/include/generated \
+ -I$(srctree)/arch/$(hdr-arch)/include/uapi \
+ -Iinclude \
+ -Iinclude/uapi \
$(if $(KBUILD_SRC), -I$(srctree)/include) \
-include include/generated/autoconf.h
Add include/uapi/ directories to build after the ordinary include directories so that #include will pick up the UAPI header directly if the kernel header has been moved there. Signed-off-by: David Howells <dhowells@redhat.com> --- Makefile | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html