• Ingo Molnar's avatar
    x86, mm: fault.c, simplify kmmio_fault() · b814d41f
    Ingo Molnar authored
    Impact: cleanup
    
    Remove an #ifdef from kmmio_fault() - we can do this by
    providing default implementations for is_kmmio_active()
    and kmmio_handler(). The compiler optimizes it all away
    in the !CONFIG_MMIOTRACE case.
    
    Also, while at it, clean up mmiotrace.h a bit:
    
     - standard header guards
     - standard vertical spaces for structure definitions
    
    No code changed (both with mmiotrace on and off in the config):
    
       text	   data	    bss	    dec	    hex	filename
       2947	     12	     12	   2971	    b9b	fault.o.before
       2947	     12	     12	   2971	    b9b	fault.o.after
    
    Cc: Pekka Paalanen <pq@iki.fi>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b814d41f
fault.c 26.5 KB