aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/hpet.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 08:42:01 +0100
committerIngo Molnar <mingo@elte.hu>2008-11-25 09:03:43 +0100
commite951e4af2e399c46891004d4931333d2d8d520ab (patch)
tree9cd27c348edd8d46b1d4850fa2ab3e4bc307e2e0 /arch/x86/kernel/hpet.c
parent3b71e9e307b3406aa29960a7428247f8a48b810c (diff)
downloadkernel_samsung_smdk4412-e951e4af2e399c46891004d4931333d2d8d520ab.zip
kernel_samsung_smdk4412-e951e4af2e399c46891004d4931333d2d8d520ab.tar.gz
kernel_samsung_smdk4412-e951e4af2e399c46891004d4931333d2d8d520ab.tar.bz2
x86: fix unused variable warning in arch/x86/kernel/hpet.c
Impact: fix build warning this warning: arch/x86/kernel/hpet.c:36: warning: ‘hpet_num_timers’ defined but not used Triggers because hpet_num_timers is unused in the !CONFIG_PCI_MSI case. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/hpet.c')
-rw-r--r--arch/x86/kernel/hpet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 15fcaac..3f0a3ed 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -33,7 +33,9 @@
* HPET address is set in acpi/boot.c, when an ACPI entry exists
*/
unsigned long hpet_address;
+#ifdef CONFIG_PCI_MSI
static unsigned long hpet_num_timers;
+#endif
static void __iomem *hpet_virt_address;
struct hpet_dev {