Skip to content

Commit

Permalink
x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Feb 20, 2009
1 parent d951734 commit 7c178a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,11 +960,7 @@ access_error(unsigned long error_code, int write, struct vm_area_struct *vma)

static int fault_in_kernel_space(unsigned long address)
{
#ifdef CONFIG_X86_32
return address >= TASK_SIZE;
#else
return address >= TASK_SIZE_MAX;
#endif
}

/*
Expand Down

0 comments on commit 7c178a2

Please sign in to comment.