lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1542084005-16416-1-git-send-email-wang.yi59@zte.com.cn>
Date:   Tue, 13 Nov 2018 12:40:05 +0800
From:   Yi Wang <wang.yi59@....com.cn>
To:     tglx@...utronix.de
Cc:     mingo@...hat.com, bp@...en8.de, hpa@...or.com, x86@...nel.org,
        pasha.tatashin@...cle.com, wang.yi59@....com.cn,
        rajvi.jingar@...el.com, linux-kernel@...r.kernel.org,
        zhong.weidong@....com.cn, bp@...e.de
Subject: [PATCH] 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 <wang.yi59@....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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ