summaryrefslogtreecommitdiff
path: root/arch/um/include/shared/user.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-05-31 20:50:57 +0300
committerRichard Weinberger <richard@nod.at>2015-05-31 23:05:32 +0300
commit298e20ba8c197e8d429a6c8671550c41c7919033 (patch)
tree58010c4512a36344c15defaeb6998d9344714810 /arch/um/include/shared/user.h
parentd2313084e2c3488e254796617fcda45d69731b21 (diff)
downloadlinux-298e20ba8c197e8d429a6c8671550c41c7919033.tar.xz
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/include/shared/user.h')
-rw-r--r--arch/um/include/shared/user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/user.h b/arch/um/include/shared/user.h
index cef068563336..4cff19f6207a 100644
--- a/arch/um/include/shared/user.h
+++ b/arch/um/include/shared/user.h
@@ -17,7 +17,7 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/* This is to get size_t */
-#ifdef __KERNEL__
+#ifndef __UM_HOST__
#include <linux/types.h>
#else
#include <stddef.h>