diff mbox series

[v6,2/4] um: Add generated/ to MODE_INCLUDE

Message ID 20180809174444.31705-3-paul.burton@mips.com
State Not Applicable
Headers show
Series MIPS: Override barrier_before_unreachable() to fix microMIPS | expand

Commit Message

Paul Burton Aug. 9, 2018, 5:44 p.m. UTC
From: James Hogan <jhogan@kernel.org>

Add the um specific generated includes directory to MODE_INCLUDE so that
asm/compiler.h can be used for overriding linux/compiler*.h which is
included automatically, with um using a generated asm-generic wrapper at

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: user-mode-linux-devel@lists.sourceforge.net
Cc: linux-um@lists.infradead.org

Signed-off-by: Paul Burton <paul.burton@mips.com>

Changes in v6:
- s/srctree/objtree/ to fix build issues when building out of tree.

Changes in v5: None
Changes in v4:
- New patch in v4.

 arch/um/Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/arch/um/Makefile b/arch/um/Makefile
index e54dda8a0363..fec1252160db 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -30,6 +30,7 @@  core-y			+= $(ARCH_DIR)/kernel/		\
 MODE_INCLUDE	+= -I$(srctree)/$(ARCH_DIR)/include/shared/skas
+MODE_INCLUDE	+= -I$(objtree)/$(ARCH_DIR)/include/generated