提交 3b71e9e3 编写于 作者: H Hannes Eder 提交者: Ingo Molnar

x86: HPET: fix sparse warning

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: NHannes Eder <hannes@hanneseder.net>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 a1a00b58
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* HPET address is set in acpi/boot.c, when an ACPI entry exists * HPET address is set in acpi/boot.c, when an ACPI entry exists
*/ */
unsigned long hpet_address; unsigned long hpet_address;
unsigned long hpet_num_timers; static unsigned long hpet_num_timers;
static void __iomem *hpet_virt_address; static void __iomem *hpet_virt_address;
struct hpet_dev { struct hpet_dev {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册