aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-20 17:27:29 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-20 18:09:45 -0500
commit7c178a26d3e753d2a4346d3e4b8aa549d387f698 (patch)
tree6e136758afac0870f66b4bd029e0cb4033db6d21 /arch/x86/mm/fault.c
parentd951734654f76a370a89b4e531af9b765bd13541 (diff)
x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()
Impact: cleanup Removal of an #ifdef in fault_in_kernel_space(), by making use of the new TASK_SIZE_MAX symbol which is now available on 32-bit too. Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r--arch/x86/mm/fault.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index 6fa9f175cba3..f195691ec26e 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -960,11 +960,7 @@ access_error(unsigned long error_code, int write, struct vm_area_struct *vma)
960 960
961static int fault_in_kernel_space(unsigned long address) 961static int fault_in_kernel_space(unsigned long address)
962{ 962{
963#ifdef CONFIG_X86_32
964 return address >= TASK_SIZE;
965#else
966 return address >= TASK_SIZE_MAX; 963 return address >= TASK_SIZE_MAX;
967#endif
968} 964}
969 965
970/* 966/*