• I
    x86, mm, kprobes: fault.c, simplify notify_page_fault() · b1801812
    Ingo Molnar 提交于
    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: NIngo Molnar <mingo@elte.hu>
    b1801812
kprobes.h 9.8 KB