linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()
@ 2018-11-13  4:40 Yi Wang
  0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2018-11-13  4:40 UTC (permalink / raw)
  To: tglx
  Cc: mingo, bp, hpa, x86, pasha.tatashin, wang.yi59, rajvi.jingar,
	linux-kernel, zhong.weidong, bp

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 <wang.yi59@zte.com.cn>
---
 arch/x86/include/asm/tsc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/tsc.h b/arch/x86/include/asm/tsc.h
index eb5bbfe..8a0c25c 100644
--- a/arch/x86/include/asm/tsc.h
+++ b/arch/x86/include/asm/tsc.h
@@ -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);
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-13  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-13  4:40 [PATCH] x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known() Yi Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).