From: Ingo Molnar Date: Tue, 25 Nov 2008 07:42:01 +0000 (+0100) Subject: x86: fix unused variable warning in arch/x86/kernel/hpet.c X-Git-Tag: firefly_0821_release~16487^2~4^27~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e951e4af2e399c46891004d4931333d2d8d520ab;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 15fcaacc1f84..3f0a3edf0a57 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 {