Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp329993ybg; Fri, 25 Oct 2019 22:31:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUiOhLfms/NtNMFkO/IFcizEyO5v1L5EY0CBJr7iGRvl7X1Ztfp03xjn+sQm7pIOfE/Gfl X-Received: by 2002:a17:906:1c97:: with SMTP id g23mr6948046ejh.66.1572067891895; Fri, 25 Oct 2019 22:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572067891; cv=none; d=google.com; s=arc-20160816; b=zqjRvivwaG8lXSoQP0jUviUq7ZGrs2qksPjy+LHh0EfLMsamyqoEmEedyWNCpu1lJ2 3b6LDre2epw7ErXTU97LvLadBvF0A8HGq6/bbNJ6FhfuAMnSU4tmLM1i3vYwCMHh/DvO arqDXu7jxly0nY6T4xHctdYuQfPJ1coNMISDtq7n3gHbfJnSpP5sHJ1xYxD/u25OYdGJ U+2YGUdV9BwJZ1azJx+4txXHZNNuLUtmHbnR+ZgRL0i5YD8X65YnyyQUMkiLgPK7rGIH G4Q8XStp3iBAat723UgUhrj+zaLqSLPtLRfSCsWqBZcvSAWSrOYdMJACoFoelu7WVxhA T7EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=O38vSOerjcaj5cN/iIFi9uHnZCPkni0z+1q6LObqSX0=; b=Y3zQycdyiMxoA9tKJGneubbNjKi0m4fAPUACeZjzZBKXL9GFSjRlwf348/P9lHetg9 zIkx6/FFVM/nCYi7qf4e7NyLw5+nmY5MQvy40eoCAgGOmy3Z+ExZatnpK0cTTnYeYm7Q Y4zdXqU3ERpUSeZQju3Ie/NhXaDCP6Ve9wEZJDede3/M9IxcPUtSb18rTw8TlWKBZmBa PhkLXuFkD8ua3dZmvRFQN9iysYJovwL57PdxilLTtrGXMR+iu6IkowOXGVuMNNfxTcD2 ykmBmWDFYLyQccS2CodoGYiNcU9f2DaM+BrHF6mgEvYkOxdIhm1OiBRMCqkc3ZGQ3B2Q +JgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z35si2949079edz.260.2019.10.25.22.31.08; Fri, 25 Oct 2019 22:31:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726217AbfJZF3A (ORCPT + 99 others); Sat, 26 Oct 2019 01:29:00 -0400 Received: from mga07.intel.com ([134.134.136.100]:24207 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfJZF27 (ORCPT ); Sat, 26 Oct 2019 01:28:59 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 22:28:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,230,1569308400"; d="scan'208";a="224122612" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 25 Oct 2019 22:28:56 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1iOEdE-000AqQ-6t; Sat, 26 Oct 2019 13:28:56 +0800 Date: Sat, 26 Oct 2019 13:28:36 +0800 From: kbuild test robot To: Like Xu Cc: kbuild-all@lists.01.org, pbonzini@redhat.com, peterz@infradead.org, kvm@vger.kernel.org, like.xu@intel.com, linux-kernel@vger.kernel.org, jmattson@google.com, sean.j.christopherson@intel.com, wei.w.wang@intel.com, kan.liang@intel.com Subject: [RFC PATCH] KVM: x86/vPMU: intel_msr_idx_to_pmc() can be static Message-ID: <20191026052836.ttzqfv336iuykjos@4978f4969bb8> References: <20191021160651.49508-5-like.xu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021160651.49508-5-like.xu@linux.intel.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: 0ca8f3f79a8c ("KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback") Signed-off-by: kbuild test robot --- pmu_amd.c | 2 +- vmx/pmu_intel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/pmu_amd.c b/arch/x86/kvm/pmu_amd.c index 88fe3f5f5bd18..ce61d180cf70c 100644 --- a/arch/x86/kvm/pmu_amd.c +++ b/arch/x86/kvm/pmu_amd.c @@ -204,7 +204,7 @@ static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) return false; } -struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) +static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) { struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); struct kvm_pmc *pmc; diff --git a/arch/x86/kvm/vmx/pmu_intel.c b/arch/x86/kvm/vmx/pmu_intel.c index 714afcd9244ca..95f0ff9e39f3c 100644 --- a/arch/x86/kvm/vmx/pmu_intel.c +++ b/arch/x86/kvm/vmx/pmu_intel.c @@ -162,7 +162,7 @@ static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) return ret; } -struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) +static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) { struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); struct kvm_pmc *pmc;