Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp632264ybz; Wed, 15 Apr 2020 15:33:00 -0700 (PDT) X-Google-Smtp-Source: APiQypJ93SpAVzOhJPNsck4OzX2nH5fGJy9bwZoYuEojtXF+VC6LK5ehGE9K5Dhf9bB/1tI1BBx0 X-Received: by 2002:a50:e40d:: with SMTP id d13mr25991740edm.122.1586989980016; Wed, 15 Apr 2020 15:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989980; cv=none; d=google.com; s=arc-20160816; b=YqLYmCCLh5quSdkvKNBZigtpG4dkKPSeGYdK24tXPGNtXScZOWvovJ4K+NICM9mHUh keVFJmDAXCDBKVb3lkKZ+4OJ5qjsgCqiJa4qzjHoll+5rWPNPkmeSPXQeVs3HO/tQYXn pSrRWCNEYuXFQBIBbixBre6CLLc48KBXXoeLVZfOJ55Vf7tkKphRTmxKpBYn85YKgFgW XGv8PYd902xW4qlXqQ4hTRgNdgktpFjBoJp8KsdyjyZKaSM3uLGiNIGf3VIDrZUqcXDy ytfPsAXRlH0P5TSH1JYOch6CNqwpqlDO9F0kjekRBKIxIIQ7z+46yYVm/TbHVTZkZ7Na aDRA== 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=eIZOLpxNfc88ALw6MNnab+eR5Y07BgchvO77gICeDFU=; b=NnDoHzL1Be+Ax0G+hJOkKtcdaQs8r4AxNfLQbdHuwJ8Ct4A9CHLP8TAv2LdKzFtb02 OdSnewpDjPeEKb5en0Djc2chxRJ46Ir/rZwVoBI4bVxdBX/18JfIu1GwWyN4I/R2ieFZ wQslt4HYG5WQHJx0Rzrd8/7/edozM5FmQTqsnRhd2PauifSNbS08N3KGouXcLXIx75Xq JIgoWDL413Fdr/0XxwGqCX6+pTYT9OOTDIu1rK3g3gY6hI6SgwyfH+wWZfxC5q0EvTF3 M+5iQbwUBDvoMeYkkkKaJdF+aVH0NJSz3reXNjMftoVyDIrf1AvJMmIqCO4P6+suKxN8 Flng== 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 a22si12501416edn.385.2020.04.15.15.32.37; Wed, 15 Apr 2020 15:33:00 -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 S2635896AbgDOIX0 (ORCPT + 99 others); Wed, 15 Apr 2020 04:23:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59446 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2635882AbgDOIXW (ORCPT ); Wed, 15 Apr 2020 04:23:22 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 04D32D7354590BD9E99B; Wed, 15 Apr 2020 16:23:20 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Wed, 15 Apr 2020 16:23:12 +0800 From: Jason Yan To: , , , , , , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] x86/kvm: make steal_time static Date: Wed, 15 Apr 2020 16:49:39 +0800 Message-ID: <20200415084939.6367-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; /* -- 2.21.1