Skip to content

Commit

Permalink
x86: HPET: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and Ingo Molnar committed Nov 23, 2008
1 parent a1a00b5 commit 3b71e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3b71e9e

Please sign in to comment.