Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4913243imu; Mon, 12 Nov 2018 20:39:02 -0800 (PST) X-Google-Smtp-Source: AJdET5d45xt5nW+EGJc7tQctf4X9qrKKW+2yyoKySGQKyrB6s2U+2Cnyx2XPiAUZs1oz8bITLybm X-Received: by 2002:a63:4b60:: with SMTP id k32mr3341395pgl.186.1542083942879; Mon, 12 Nov 2018 20:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542083942; cv=none; d=google.com; s=arc-20160816; b=a1KIUWsT3X6TNI3WMlPZf+hpWeSa0bVjFdJOGQHUZWK2cAmzoT17K9PZVi8kxVtum1 T8uEdHVorDlYOFOUZtyM/hUT+T/c9DbBUzHUshzYCDETrpkigZl1y5+z//ayPfYeUMLO up8qt/AIlHOQpvYTBvu/gHgD15YJdI+/ED4cvZVgRYe13WZsmr+BBs6duGeqyl81uj/p HWoY9ad1TqmQ+EV5ir5LpVnLCOPjxLZxVaEP8ZSff9VTlHqX+eN0Nj9f3bDAwkvhfkrk NiytcOygqOiE+ubpPruA+ZvANV8bg6mmqLIFoIH4NJIpmBLKpyCKONTLkCsKdsHeheyX T65w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xVVevxd2KRWu7LDEG8ntoemlkJ33kzaRLyl+zjhmomI=; b=PF3v8BS6Cig8OwPPOcoQ3ntoPX7qt0J20afKkurjzD5Tm9z8BIP1uK2hjXkoaPP5oZ 2HFPTemuiQsnZxqi0gfaZyZRjE75wB5ZalrKy0IxX7eR5AGCe1jxyZijKD8p37A/n/Y3 4CAoSGCaPMjxhdncUPhckEnm36oK0iPS265mAtsFinI5JNg18NVBgbgVKDY68ebixbvQ G2ix2+rSQIg5B4pmpBF1XvRspUtlpp8EZpllGlnmeGbwDo5/H+8zegvlyuzq/NwbQ15c yHP0p8/rNgpX1lPGsNByOr2m7dWijivzFevd1KkkDHuOaQ/ToG+b9HCo8z6dwex6q/zg aF2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w32si18960096pga.337.2018.11.12.20.38.47; Mon, 12 Nov 2018 20:39:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730748AbeKMOek convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 09:34:40 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:22946 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbeKMOek (ORCPT ); Tue, 13 Nov 2018 09:34:40 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 73A8FC4862DAD13EEC12; Tue, 13 Nov 2018 12:38:20 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wAD4cHHQ097140; Tue, 13 Nov 2018 12:38:17 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018111312382992-10341810 ; Tue, 13 Nov 2018 12:38:29 +0800 From: Yi Wang To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, pasha.tatashin@oracle.com, wang.yi59@zte.com.cn, rajvi.jingar@intel.com, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, bp@suse.de Subject: [PATCH] x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known() Date: Tue, 13 Nov 2018 12:40:05 +0800 Message-Id: <1542084005-16416-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-13 12:38:30, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-13 12:38:13 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wAD4cHHQ097140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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