x86: HPET: fix sparse warning
authorHannes Eder <hannes@hanneseder.net>
Sun, 23 Nov 2008 19:19:33 +0000 (20:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 19:23:37 +0000 (20:23 +0100)
Impact: make global variable static

Fix this sparse warning:

 arch/x86/kernel/hpet.c:36:18: warning: symbol 'hpet_num_timers' was
 not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/hpet.c

index 067d8de..15fcaac 100644 (file)
@@ -33,7 +33,7 @@
  * HPET address is set in acpi/boot.c, when an ACPI entry exists
  */
 unsigned long                          hpet_address;
-unsigned long                          hpet_num_timers;
+static unsigned long                   hpet_num_timers;
 static void __iomem                    *hpet_virt_address;
 
 struct hpet_dev {