diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-02-20 04:18:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-02-20 04:55:32 -0500 |
commit | 570e1aa84c376ff39809442f09c7606ddf62cfd1 (patch) | |
tree | b0728432c0f7d9b2f4a13fa44bda309a11c49349 | |
parent | 1fbe23e0dea54e30f39f26ae90150ea7ebb48f79 (diff) |
x86/mm/ASLR: Avoid PAGE_SIZE redefinition for UML subarch
Commit f47233c2d34 ("x86/mm/ASLR: Propagate base load address
calculation") causes PAGE_SIZE redefinition warnings for UML
subarch builds. This is caused by added includes that were
leftovers from previous patch versions are are not actually
needed (especially page_types.h inlcude in module.c). Drop
those stray includes.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Cc: Borislav Petkov <bp@suse.de>
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: Kees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/alpine.LNX.2.00.1502201017240.28769@pobox.suse.cz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/page_types.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/module.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/page_types.h b/arch/x86/include/asm/page_types.h index 3d43ce36eaba..95e11f79f123 100644 --- a/arch/x86/include/asm/page_types.h +++ b/arch/x86/include/asm/page_types.h | |||
@@ -3,7 +3,6 @@ | |||
3 | 3 | ||
4 | #include <linux/const.h> | 4 | #include <linux/const.h> |
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | #include <asm/bootparam.h> | ||
7 | 6 | ||
8 | /* PAGE_SHIFT determines the page size */ | 7 | /* PAGE_SHIFT determines the page size */ |
9 | #define PAGE_SHIFT 12 | 8 | #define PAGE_SHIFT 12 |
diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c index c3c59a3a14ad..ef00116e8270 100644 --- a/arch/x86/kernel/module.c +++ b/arch/x86/kernel/module.c | |||
@@ -32,7 +32,6 @@ | |||
32 | 32 | ||
33 | #include <asm/page.h> | 33 | #include <asm/page.h> |
34 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
35 | #include <asm/page_types.h> | ||
36 | 35 | ||
37 | #if 0 | 36 | #if 0 |
38 | #define DEBUGP(fmt, ...) \ | 37 | #define DEBUGP(fmt, ...) \ |