dmar, x86: Use function stubs when CONFIG_INTR_REMAP is disabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 22 Nov 2010 20:48:34 +0000 (12:48 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Nov 2010 08:57:36 +0000 (09:57 +0100)
commit4917b284db8607e414c334317b7d15239854d39c
treea1f3590349e1ef990e0febf789c43bb124fff448
parent37db6c8f1d0c4b8f01dc049f3a893b725288660f
dmar, x86: Use function stubs when CONFIG_INTR_REMAP is disabled

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: Fabio Comolli <fabio.comolli@gmail.com>
Signed-off-by: Randy 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: Ingo Molnar <mingo@elte.hu>
include/linux/dmar.h