Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp797097ybz; Wed, 15 Apr 2020 19:19:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJ84Lf5y0tqLbvGVRuwrnoqwRvxMaEiEDxk/1N1xNlQZ8WgamtfKV3BeIrircE/t/qHOaAv X-Received: by 2002:a17:906:72c8:: with SMTP id m8mr7896859ejl.318.1587003548272; Wed, 15 Apr 2020 19:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587003548; cv=none; d=google.com; s=arc-20160816; b=hcUfhgXXp5maXaBeNzmm7QaMQqNLoQn7WxwaxlQPiJ+Ksl8AJySq9R6FUkFE0vu9vK JVdXk0+vEku1vmuuEC5DrTouaRZSTh4Pw+Q78rQiN7gJPABYhMgR5vQMRs+1k5MbkiKl HAZrzrJMLcnA6oZKS1HhoWfEA65CPeFnzDkHO1bvgQ3BeamOqoOTC2XgJHv8JrI0ZIcG aHIx06a2tiRs8pRWgFSdFocrHnkjbXiHc/41fBQdb5AFUStgpEDaFmTvdfrUDNHamGaF fPfbGniMGixnFYCtA+rB7okCPHr+VkvX1ZCcO0AjFYfYBcVayOMLuvxY8NjE1amupt2i qetQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=tH2I3gMbPqDO8w/ZpPD2bHIAlMLEW3olZ7cJGrOa0SA=; b=zBGgwB8SZ5jJQF+bCVTgnY1oB9jUZPaUrysiNIGxh3w3f9Q8t/UP1if1zovDe+x+Dx mN5JySzVD1OemnkMOVMultOPMemLyk2LXTUcD7aiyaVvQ48wmN3NBj838jHTkHWLCiJV H82gxHqJnTTIF6uHa5PwaIJgv2kr6G1TtPGadz9v2/cCQSz4my38OaKeuy94k0tOtgKH jFCYm9DFspfrJW1VRobgEUbWgeoFsc3jO+//LjWuAGforUeYPudhkPioRJWbkQ+Hu4E9 XJ1tn1AAXyBGz0KRL+/ZJSdRVd6VqLWFtKFIyfsUlRc9PP9ggBBSyII+LuIaFOb7a7BZ 6Rdw== 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 g5si10469419ejm.120.2020.04.15.19.18.45; Wed, 15 Apr 2020 19:19:08 -0700 (PDT) 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 S1731820AbgDPCQW (ORCPT + 99 others); Wed, 15 Apr 2020 22:16:22 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2335 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728397AbgDPCQU (ORCPT ); Wed, 15 Apr 2020 22:16:20 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 39A5686E337A8F2A7A88; Thu, 16 Apr 2020 10:16:10 +0800 (CST) Received: from [127.0.0.1] (10.166.213.7) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 16 Apr 2020 10:15:59 +0800 Subject: Re: [PATCH] x86/kvm: make steal_time static To: Paolo Bonzini , , , , , , , , , , , , CC: Hulk Robot References: <20200415084939.6367-1-yanaijie@huawei.com> From: Jason Yan Message-ID: <35c3890e-0c45-0dac-e9f0-f2a9446a387d@huawei.com> Date: Thu, 16 Apr 2020 10:15:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.213.7] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/4/15 22:42, Paolo Bonzini 写道: > On 15/04/20 10:49, Jason Yan wrote: >> Fix the following sparse warning: >> >> arch/x86/kernel/kvm.c:58:1: warning: symbol '__pcpu_scope_steal_time' >> was not declared. Should it be static? >> >> Reported-by: Hulk Robot >> Signed-off-by: Jason Yan >> --- >> arch/x86/kernel/kvm.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c >> index 6efe0410fb72..f75010cde5d5 100644 >> --- a/arch/x86/kernel/kvm.c >> +++ b/arch/x86/kernel/kvm.c >> @@ -55,7 +55,7 @@ static int __init parse_no_stealacc(char *arg) >> early_param("no-steal-acc", parse_no_stealacc); >> >> static DEFINE_PER_CPU_DECRYPTED(struct kvm_vcpu_pv_apf_data, apf_reason) __aligned(64); >> -DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible; >> +static DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible; >> static int has_steal_clock = 0; >> >> /* >> > > Queued, thanks. > Sorry that I found 14e581c381b9 ("x86/kvm: Make steal_time visible") said that it is used by assembler code but I didn't find where. Please drop this patch if it's true. Sorry to make this trouble again. Thanks, Jason > Paolo > > > . >