diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 02:42:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-25 03:03:43 -0500 |
commit | e951e4af2e399c46891004d4931333d2d8d520ab (patch) | |
tree | 9cd27c348edd8d46b1d4850fa2ab3e4bc307e2e0 | |
parent | 3b71e9e307b3406aa29960a7428247f8a48b810c (diff) |
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>
-rw-r--r-- | arch/x86/kernel/hpet.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
33 | * HPET address is set in acpi/boot.c, when an ACPI entry exists | 33 | * HPET address is set in acpi/boot.c, when an ACPI entry exists |
34 | */ | 34 | */ |
35 | unsigned long hpet_address; | 35 | unsigned long hpet_address; |
36 | #ifdef CONFIG_PCI_MSI | ||
36 | static unsigned long hpet_num_timers; | 37 | static unsigned long hpet_num_timers; |
38 | #endif | ||
37 | static void __iomem *hpet_virt_address; | 39 | static void __iomem *hpet_virt_address; |
38 | 40 | ||
39 | struct hpet_dev { | 41 | struct hpet_dev { |