Skip to contentSkip to conversation

x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()

PATCH New Yi Wang 1 participant 1 message Nov 13, 2018 x86

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()

We get a warning when building kernel with W=1:
arch/x86/kernel/tsc.c:1497:15: warning: no previous prototype for ‘calibrate_delay_is_known’ [-Wmissing-prototypes]
unsigned long calibrate_delay_is_known(void)

               ^

Add the missing declaration in head file to fix this.

---
 arch/x86/include/asm/tsc.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/tsc.h +1 -0
index eb5bbfe..8a0c25c 100644
@@ -35,6 +35,7 @@ static inline cycles_t get_cycles(void)
 
 extern void tsc_early_init(void);
 extern void tsc_init(void);
+extern unsigned long calibrate_delay_is_known(void);
 extern void mark_tsc_unstable(char *reason);
 extern int unsynchronized_tsc(void);
 extern int check_tsc_unstable(void);
Signature · 1 line
1.8.3.1