]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm, kprobes: fault.c, simplify notify_page_fault()
authorIngo Molnar <mingo@elte.hu>
Fri, 20 Feb 2009 21:42:57 +0000 (22:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 20 Feb 2009 23:09:42 +0000 (00:09 +0100)
commit92d9ddd31f832248079ea71da09b14b5ce43d511
treee3e4954ca44999b25475307afb0653eed39ff63f
parentb28f8c0809a7eb200f10b726c5b8ccd4cefbb710
x86, mm, kprobes: fault.c, simplify notify_page_fault()

Impact: cleanup

Remove an #ifdef from notify_page_fault(). The function still
compiles to nothing in the !CONFIG_KPROBES case.

Introduce kprobes_built_in() and kprobe_fault_handler() helpers
to allow this - they returns 0 if !CONFIG_KPROBES.

No code changed:

   text    data     bss     dec     hex filename
   4618      32      24    4674    1242 fault.o.before
   4618      32      24    4674    1242 fault.o.after

Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c
include/linux/kprobes.h