Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1921888pxb; Fri, 5 Mar 2021 03:05:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLoiX/edxERXjf/2K83bJ5rqv+dsilx/z3WhXCeWHBiRUFJQ8seOOJbQPQkMgL8BH2lwtJ X-Received: by 2002:a17:906:7fc4:: with SMTP id r4mr1703463ejs.81.1614942354538; Fri, 05 Mar 2021 03:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614942354; cv=none; d=google.com; s=arc-20160816; b=yT1M/tMCOHOexxX9CZJVnzrRm6aL5NmQXDohK/cVO0lXnHnsgYc8QXWEQ0IpRTCzgN jy66a6aKG+9GgMBi2yY7PeM19WPff606J9MnpScGErAeLM+PvYH+0rNw4+hloTI0oOMF IcQBtXwrdrHwvdf8vNPSdXLgzqMHg0++IKiG1Uvcd+ZtG4TmnztF+ki+O66rZapLFTnM z6qfhdYC40DDKauNZvCDnZ1oS2QqADV+tPaqW7fD/pTRGwEAfh1K7j+ijVcz3ABVqm1T ROSGKfg/J+H2a3g/87c6dfIDD4coqkZJnOChjoeFLQrzROIuepOtTJLobdSgWPb1tXJU YyAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=k5eA/Bb8Tx/wf7z5naILB1VehtdmqTLy3kaUy6nP7+I=; b=ntNlIfuARJQ1nFDKQv8mLQoA14XN0EGJHHZDyqU5oXQB+JBHK3n59sVe95Z3xywijx y1Xo2PxIAesArPXXjgtFpToiMZr2r2iU0CEatiVgg6xjmNN3Gu3pzpxBbJUiLCaOaeMj SXoVVliHAS3RGfgmZYtxzklgUntr1HdMyZbgnuO6FhSVkhcxL/zAs1ixPBGMh1gFcAtx RF+LCu3S4KIpOLn/OKH1mJStLuUSrOgNSdyr1Q4ifTmcrBIIZlss7ywUOY5TXQRiNco7 8bbxW2xcfvCfhNlZdkYWkPFNsViDMz5LMiOmMeAE03YlnxkX5e+KcDE4ibubgq+ehoBz htNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si1185346ejg.151.2021.03.05.03.05.31; Fri, 05 Mar 2021 03:05:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbhCELDc (ORCPT + 99 others); Fri, 5 Mar 2021 06:03:32 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13066 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhCELCz (ORCPT ); Fri, 5 Mar 2021 06:02:55 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DsPsk6yHdzMjS3; Fri, 5 Mar 2021 19:00:42 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Mar 2021 19:02:44 +0800 From: Nanyong Sun To: , , CC: , , , , , Subject: [PATCH 5/9] riscv: time: Fix no prototype for time_init Date: Fri, 5 Mar 2021 19:33:28 +0800 Message-ID: <20210305113332.428048-6-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305113332.428048-1-sunnanyong@huawei.com> References: <20210305113332.428048-1-sunnanyong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following W=1 compilation warning: arch/riscv/kernel/time.c:16:13: warning: no previous prototype for ‘time_init’ [-Wmissing-prototypes] 16 | void __init time_init(void) | ^~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm/timex.h | 2 ++ arch/riscv/kernel/time.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/riscv/include/asm/timex.h b/arch/riscv/include/asm/timex.h index 81de51e6aa32..507cae273bc6 100644 --- a/arch/riscv/include/asm/timex.h +++ b/arch/riscv/include/asm/timex.h @@ -88,4 +88,6 @@ static inline int read_current_timer(unsigned long *timer_val) return 0; } +extern void time_init(void); + #endif /* _ASM_RISCV_TIMEX_H */ diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 8a5cf99c0776..1b432264f7ef 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -9,6 +9,7 @@ #include #include #include +#include unsigned long riscv_timebase; EXPORT_SYMBOL_GPL(riscv_timebase); -- 2.25.1