summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-05-31 19:50:57 +0200
committerRichard Weinberger <richard@nod.at>2015-05-31 22:05:32 +0200
commit298e20ba8c197e8d429a6c8671550c41c7919033 (patch)
tree58010c4512a36344c15defaeb6998d9344714810 /arch/um/drivers
parentd2313084e2c3488e254796617fcda45d69731b21 (diff)
downloadtalos-op-linux-298e20ba8c197e8d429a6c8671550c41c7919033.tar.gz
talos-op-linux-298e20ba8c197e8d429a6c8671550c41c7919033.zip
um: Stop abusing __KERNEL__
Currently UML is abusing __KERNEL__ to distinguish between kernel and host code (os-Linux). It is better to use a custom define such that existing users of __KERNEL__ don't get confused. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r--arch/um/drivers/mconsole.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/mconsole.h b/arch/um/drivers/mconsole.h
index 8b22535c62ce..44af7379ea19 100644
--- a/arch/um/drivers/mconsole.h
+++ b/arch/um/drivers/mconsole.h
@@ -7,7 +7,7 @@
#ifndef __MCONSOLE_H__
#define __MCONSOLE_H__
-#ifndef __KERNEL__
+#ifdef __UM_HOST__
#include <stdint.h>
#define u32 uint32_t
#endif
OpenPOWER on IntegriCloud