x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()
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.
Signed-off-by Yi Wang <[email protected]>
--- arch/x86/include/asm/tsc.h | 1 + 1 file changed, 1 insertion(+)
arch/x86/include/asm/tsc.h +1 -0
@@ -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