Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2116643rwb; Sat, 8 Oct 2022 02:31:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sqc315fDajMDxgbKVbNSSK4D73GWvbQwlRPfYAe1vXvYkqbpsIpBdRkBJA4PeZLI5aCTb X-Received: by 2002:aa7:d454:0:b0:459:9ae7:725b with SMTP id q20-20020aa7d454000000b004599ae7725bmr8084048edr.165.1665221503827; Sat, 08 Oct 2022 02:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665221503; cv=none; d=google.com; s=arc-20160816; b=0tadXQQJHrjknS9/ilmO+y8lGUyqYrWdoy3DsQ3bst5jn4judFIXA64JnAmy5yKo3g o+RDxD+BY+dBUj5X/AwkXZLoCVbyuUUpuMZEbAAN003HjXqtn0EQpzIeaBpQiJIGqq0Z QNa96ibM91l4AtyrujsPwpOPXx7yAk+n8TAfkRrXOyZ1+F5qiVAPw+LbsHl2AasA1sE1 qS7DpQ9vg9bCc6uw8alZ0EogGmpyfSxyGU2D7QmJHLxo5/iIYDxnMahRP/g4/TSdHdE2 PBe9fs34mQVJLsiL3ozO7SOwUiJkkj6MZclZ2YH9PLI5ID0Frn6qQ6YvqMI+E79yc1z4 wJqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id; bh=R3CWBMGR+HgHvUFiK8h0aKEVzQ3a/ga/d54nW7NAjBE=; b=V98RUPzqes2Jvhtn7nVVOzB6ZLTssXei8gnp9aASeTRpYQQiaWUb0RcK3yW0/XGagU XseTyb9RIjwnKuFrWzRRdDT9j0ty9uBqPqQX1U7mjoR6sdrq9RW0HdbR7cyRW6QibFBH S4KfvAiJnVvlbA63vjodqb/XYF0opvN3A0mj7L+s7HYSjM6ri4YK+NvXMUrh3zk7XgD5 tYHizM39ok0yJ9PoKqjkfP34NfaVDyCURr0F6cKtMyzqGyz2KfxCi1Ck1NDnoZU4/0mP /07P+Z76yC55rkdyY1LaBU1X0vrv33O2VSW7FVFP2+//ubzGstO09cSK+4E+LEGSf63c iYFw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090658cb00b00741a19c2151si3968776ejs.625.2022.10.08.02.31.10; Sat, 08 Oct 2022 02:31:43 -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 S229545AbiJHIrm (ORCPT + 99 others); Sat, 8 Oct 2022 04:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJHIri (ORCPT ); Sat, 8 Oct 2022 04:47:38 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6607A4B992 for ; Sat, 8 Oct 2022 01:47:37 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MkzJh2GhtzkXw3; Sat, 8 Oct 2022 16:45:08 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 16:47:35 +0800 Received: from [10.67.111.195] (10.67.111.195) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 16:47:35 +0800 Message-ID: <2a887f96-93d4-90ed-cfc4-61e895b102cf@huawei.com> Date: Sat, 8 Oct 2022 16:47:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH -next] x86/tsc: Make art_related_clocksource static To: , , , , , , , , , References: <20220823021821.3052159-1-chenlifu@huawei.com> From: chenlifu In-Reply-To: <20220823021821.3052159-1-chenlifu@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.195] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022/8/23 10:18, Chen Lifu 写道: > The symbol is not used outside of the file, so mark it static. > > Fixes the following warning: > > arch/x86/kernel/tsc.c:53:20: warning: > symbol 'art_related_clocksource' was not declared. Should it be static? > > Signed-off-by: Chen Lifu > --- > arch/x86/kernel/tsc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c > index cafacb2e58cc..a78e73da4a74 100644 > --- a/arch/x86/kernel/tsc.c > +++ b/arch/x86/kernel/tsc.c > @@ -49,11 +49,11 @@ static DEFINE_STATIC_KEY_FALSE(__use_tsc); > int tsc_clocksource_reliable; > > static u32 art_to_tsc_numerator; > static u32 art_to_tsc_denominator; > static u64 art_to_tsc_offset; > -struct clocksource *art_related_clocksource; > +static struct clocksource *art_related_clocksource; > > struct cyc2ns { > struct cyc2ns_data data[2]; /* 0 + 2*16 = 32 */ > seqcount_latch_t seq; /* 32 + 4 = 36 */ > friendly ping ...