Skip to content
  • Randy Dunlap's avatar
    dmar, x86: Use function stubs when CONFIG_INTR_REMAP is disabled · 4917b284
    Randy Dunlap authored
    
    
    The stubs for CONFIG_INTR_REMAP disabled need to be functions
    instead of values to eliminate build warnings.
    
     arch/x86/kernel/apic/apic.c: In function 'lapic_suspend':
     arch/x86/kernel/apic/apic.c:2060:3: warning: statement with no effect
     arch/x86/kernel/apic/apic.c: In function 'lapic_resume':
     arch/x86/kernel/apic/apic.c:2137:3: warning: statement with no effect
    
    Reported-and-Tested-by: default avatarFabio Comolli <fabio.comolli@gmail.com>
    Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Cc: Suresh Siddha <suresh.b.siddha@intel.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
    LKML-Reference: <20101122124834.74429004.randy.dunlap@oracle.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    4917b284