Message ID | 20230713115831.777-1-thunder.leizhen@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1774134vqm; Thu, 13 Jul 2023 05:06:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuVdlOxb3Vh1dFLG7m7qDZ/6QhUs2XBdt04NgY0lzgMXmJmPVPdWa17/E2LY33Tm8W5psK X-Received: by 2002:a17:902:ce91:b0:1b9:e1d6:7c36 with SMTP id f17-20020a170902ce9100b001b9e1d67c36mr1637564plg.15.1689249994838; Thu, 13 Jul 2023 05:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689249994; cv=none; d=google.com; s=arc-20160816; b=XL/kERK0KBoORI1glhcUNECY8o8EcaF+XxoCTtUKqma787ctfmNv1WMrSTePusQL7H 2oV0xd9umCK11kjXyAzobyeMOYoIK9SsHmiqQ2qAl0fzl03A9Wp6FhIww5iSPHjRo1dl XCRWN9j0oMGY6FHe0mAEN0BKSG4LxUvy2h5jcmCa0o+t8diFgJuEXVVuwSAb/xadWnCi qS/sAJyGeXt0d52dMA/aabRzBG9Z7qbiO9Q9BkOdo8waxXGm3yXgr9eQFMp4lanDcQbG /rHsWdn1z9IWHdwnylB4asBZ4sapoOyZ3rwiy0CHGgWMTMTifbXOEypytf8rMJrYbbp3 sOiw== 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 :message-id:date:subject:cc:to:from; bh=P3EHcelRz/m8rdC4OL7wS3YNB1gq3aDVR8Svznw9ia0=; fh=s27yLMFj9362tNO3jjbHies1w0e8CRkeiw/lOln4xcg=; b=odZjk1Oc3Tnnic8HKl+9h+YmXMEqJjrx5LK3MHAVv6AkZqxCCL7x6thuDvE5r+giYw 2C+oCsnYFGzMnIhdS+4zJQ1ks4KLO3flDziTb7WK/rNlXXk0lyLN5JuQgKP4zGp1ND9R lfpcYKbTQC3r1Xbj5/QS0lkQAUFMguNcFiJrH/3fffKz+leKHT4Pu4mBlKf3tz3e9EfR qjRhQ5npH7WNYbwMYdpAGfRaZRA7O8GJKe37u+MBa7yBY2N2r8QLR5Px0P5JbgClHDL8 Pl0akmbj4tD31B9El7+6o/dRXl6kbxwswEKgQ9Gx6YplbotWagZ+1vZGeP3te8QBg0On B/Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id je7-20020a170903264700b001b6aeea4a58si5037229plb.53.2023.07.13.05.06.19; Thu, 13 Jul 2023 05:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234297AbjGML72 (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 13 Jul 2023 07:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234517AbjGML7Y (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Jul 2023 07:59:24 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E74270F for <linux-kernel@vger.kernel.org>; Thu, 13 Jul 2023 04:59:21 -0700 (PDT) Received: from dggpemm500006.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R1tRj1Kt0zrRlT; Thu, 13 Jul 2023 19:58:41 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 13 Jul 2023 19:59:17 +0800 From: Zhen Lei <thunder.leizhen@huawei.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: Zhen Lei <thunder.leizhen@huawei.com> Subject: [PATCH] arm64: vdso: Clear common make C=2 warnings Date: Thu, 13 Jul 2023 19:58:31 +0800 Message-ID: <20230713115831.777-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771307002832000429 X-GMAIL-MSGID: 1771307002832000429 |
Series |
arm64: vdso: Clear common make C=2 warnings
|
|
Commit Message
Zhen Lei
July 13, 2023, 11:58 a.m. UTC
make C=2 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- xxx.o
When I use the command above to do a 'make C=2' check on any object file,
the following warnings are always output:
CHECK arch/arm64/kernel/vdso/vgettimeofday.c
arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning:
symbol '__kernel_clock_gettime' was not declared. Should it be static?
arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning:
symbol '__kernel_gettimeofday' was not declared. Should it be static?
arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning:
symbol '__kernel_clock_getres' was not declared. Should it be static?
Therefore, the declaration of the three functions is added to eliminate
these common warnings to provide a clean output.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
arch/arm64/kernel/vdso/vgettimeofday.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Thu, 13 Jul 2023 19:58:31 +0800, Zhen Lei wrote: > make C=2 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- xxx.o > > When I use the command above to do a 'make C=2' check on any object file, > the following warnings are always output: > > CHECK arch/arm64/kernel/vdso/vgettimeofday.c > arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning: > symbol '__kernel_clock_gettime' was not declared. Should it be static? > arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning: > symbol '__kernel_gettimeofday' was not declared. Should it be static? > arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning: > symbol '__kernel_clock_getres' was not declared. Should it be static? > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: vdso: Clear common make C=2 warnings https://git.kernel.org/arm64/c/71e06e1acecb Cheers,
diff --git a/arch/arm64/kernel/vdso/vgettimeofday.c b/arch/arm64/kernel/vdso/vgettimeofday.c index 4236cf34d7d9c34..9941c5b04f15878 100644 --- a/arch/arm64/kernel/vdso/vgettimeofday.c +++ b/arch/arm64/kernel/vdso/vgettimeofday.c @@ -6,6 +6,10 @@ * */ +int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts); +int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); +int __kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res); + int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) {