x86: fix unused variable warning in arch/x86/kernel/hpet.c
authorIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 07:42:01 +0000 (08:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 08:03:43 +0000 (09:03 +0100)
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>
arch/x86/kernel/hpet.c

index 15fcaacc1f8440c120eb1f8b9dfa79b26e907024..3f0a3edf0a573a2f5f2d1051b32285ebffcdbb36 100644 (file)
@@ -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 {