• Marcin Slusarz's avatar
    x86: mmconf: fix section mismatch warning · bafc1dae
    Marcin Slusarz authored
    WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x1591): Section mismatch in reference from the function init_amd() to the function .init.text:check_enable_amd_mmconf_dmi()
    The function __cpuinit init_amd() references
    a function __init check_enable_amd_mmconf_dmi().
    If check_enable_amd_mmconf_dmi is only used by init_amd then
    annotate check_enable_amd_mmconf_dmi with a matching annotation.
    
    check_enable_amd_mmconf_dmi is only called from init_amd which is __cpuinit
    Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    bafc1dae
mmconfig.h 321 Bytes