• Sam Ravnborg's avatar
    i386: fix section mismatch warning in intel.c · d72b1b4f
    Sam Ravnborg authored
    Fix following section mismatch warning:
    WARNING: vmlinux.o(.text+0xc88c): Section mismatch: reference to .init.text:trap_init_f00f_bug (between 'init_intel' and 'cpuid4_cache_lookup')
    
    init_intel are __cpuint where trap_init_f00f_bug is __init.
    Fixed by declaring trap_init_f00f_bug __cpuinit.
    
    Moved the defintion of trap_init_f00f_bug to the sole user in init.c
    so the ugly prototype in intel.c could get killed.
    
    Frank van Maarseveen <frankvm@frankvm.com> supplied the .config used
    to reproduce the warning.
    
    [ tglx: arch/x86 adaptation ]
    
    Cc: Frank van Maarseveen <frankvm@frankvm.com>
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    d72b1b4f
traps_32.c 31.3 KB