Skip to contentSkip to conversation

Fix build when CONFIG_HPET_TIMER=n

PATCH New Ian Campbell 1 participant 1 message Nov 25, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build when CONFIG_HPET_TIMER=n

Broken by
commit b2a93181340b2efd58f16a2d7303f6f45591bca0

Author: Wei Gang <[email protected]>
Date:   Sun Oct 18 17:39:04 2009 +0900

x86/hpet: allow hpet to be programmatically disabled

CC arch/x86/xen/setup.o
In file included from arch/x86/xen/setup.c:14:
arch/x86/include/asm/hpet.h: In function 'disable_hpet':
arch/x86/include/asm/hpet.h:111: error: parameter name omitted make[3]: *** [arch/x86/xen/setup.o] Error 1
make[2]: *** [arch/x86/xen] Error 2
make[2]: *** Waiting for unfinished jobs....

Cc Wei Gang <[email protected]>
Cc Jeremy Fitzhardinge <[email protected]>
---
 arch/x86/include/asm/hpet.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/include/asm/hpet.h +1 -1
index be24e01..d5e7219 100644
@@ -108,7 +108,7 @@ extern void hpet_unregister_irq_handler(rtc_irq_handler handler);
 #else /* CONFIG_HPET_TIMER */
 
 static inline int hpet_enable(void) { return 0; }
-static inline int disable_hpet(char *) { return 0; }
+static inline int disable_hpet(char *reason) { return 0; }
 static inline int is_hpet_enabled(void) { return 0; }
 #define hpet_readl(a) 0
 
Signature · 1 line
1.5.6.5