Skip to content

Commit 570e1aa

Browse files
Jiri Kosinaingomolnar
authored andcommitted
x86/mm/ASLR: Avoid PAGE_SIZE redefinition for UML subarch
Commit f47233c ("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>
1 parent 1fbe23e commit 570e1aa

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/x86/include/asm/page_types.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <linux/const.h>
55
#include <linux/types.h>
6-
#include <asm/bootparam.h>
76

87
/* PAGE_SHIFT determines the page size */
98
#define PAGE_SHIFT 12

‎arch/x86/kernel/module.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
#include <asm/page.h>
3434
#include <asm/pgtable.h>
35-
#include <asm/page_types.h>
3635

3736
#if 0
3837
#define DEBUGP(fmt, ...) \

0 commit comments

Comments
 (0)