]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
x86/mm/ASLR: Avoid PAGE_SIZE redefinition for UML subarch
authorJiri Kosina <jkosina@suse.cz>
Fri, 20 Feb 2015 09:18:59 +0000 (10:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 20 Feb 2015 09:55:32 +0000 (10:55 +0100)
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>
arch/x86/include/asm/page_types.h
arch/x86/kernel/module.c

index 3d43ce36eaba779ef19c409f9605e944dfb43aa4..95e11f79f123c6aadd5ed8888a51e1870405deeb 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <linux/const.h>
 #include <linux/types.h>
-#include <asm/bootparam.h>
 
 /* PAGE_SHIFT determines the page size */
 #define PAGE_SHIFT     12
index c3c59a3a14adb186b9bf5a54f1c11f45a055a39e..ef00116e8270ada51254765ca5a546fb8ca35aae 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <asm/page.h>
 #include <asm/pgtable.h>
-#include <asm/page_types.h>
 
 #if 0
 #define DEBUGP(fmt, ...)                               \