Add uapi/ include directory to build after the ordinary include directories so that #include_next will work correctly. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> --- Makefile | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dc67046..f7e6a60 100644 --- a/Makefile +++ b/Makefile @@ -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)/uapi \ + -Iinclude \ + -Iuapi \ $(if $(KBUILD_SRC), -I$(srctree)/include) \ -include include/generated/autoconf.h -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html