Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4250332pxb; Tue, 25 Jan 2022 06:41:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJylwqxcTkSgI11u4sIRJLc05/CSLQshgGbhojxOmHR+UCSnnLTO2WRk7eGumIUrDr4hyTck X-Received: by 2002:a50:fc8f:: with SMTP id f15mr13284623edq.268.1643121689258; Tue, 25 Jan 2022 06:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121689; cv=none; d=google.com; s=arc-20160816; b=dilrjEctDOw7tgKwQ9hpVzKg/VX6Mc3FK0+PQdeMJCneXaN113FUU2MHCpWW5sjqBf qzVkywPxJwFcgKwD3peburcsZfNE2meLQl9IW8n08ERHrN/TtXI6a0kW/SCuf3ozBreN CNs0wwUuqEiCi83VTsUKFQtKszduFxS+dy+W3frHhtIo4o0J+mafYZEoAPBf9bkp1S4A xQx1Na3lrRTSmjyO8EPanYUyORqCxO7u+MrIhL3oceOQpBaOqYS2RXW+4A6mUltaH6XH 6YSJSmY1OO5GB1MEDouyOw25ZaG8Hh+qDDjBqgvguiD0t5a3S+XuxWora3Tk7BRHhpSs w8qQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k0kf51n6IyPfulhV98Cqhgqk8V87O+wD98aCTABuT/8=; b=xn+gzpgiblcPt+nfyaWbMO6/WPMG4KgPVg9M2pmLT07QjGH7PwIFJXNXcgDQl8nrjO EfEA9V+SrYju4v0deBynphrkeCwwiHwb9kVU9BMGIRlgAImYS0uwWwWDt+dnJx/Iy9FZ webgoQeHmd0l/NvtGgd40Pssm7yL8/sw2GuHRkjZCw94zN5QpQFjImQK3kA3lv0mhzgU Em8MFb4/VLcERiHvaBCJFSGXd8fFfHIDXIrZSlzBWXfrKI/s01Jta/v68MOm+Sruknle SgPoGfnYuzcyDEDOpYFnEMafIeF2KtPfGosOawCKix5EV42+JyxtJC1GEil9VOAw2Gn8 hfog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jxR3fSQn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp4si9121664ejc.634.2022.01.25.06.41.01; Tue, 25 Jan 2022 06:41:29 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jxR3fSQn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242124AbiAYKIU (ORCPT + 99 others); Tue, 25 Jan 2022 05:08:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238620AbiAYKAB (ORCPT ); Tue, 25 Jan 2022 05:00:01 -0500 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7139C061765; Tue, 25 Jan 2022 02:00:01 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id h12so19432438pjq.3; Tue, 25 Jan 2022 02:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k0kf51n6IyPfulhV98Cqhgqk8V87O+wD98aCTABuT/8=; b=jxR3fSQn2SIOlSqeCo0N4ZF4EkoASI2lwdGuP9rf9m1fJRMjfg1gyQHvNgwRQN9Psx 1ULXx5VA5jTv3Nic5RlnjtaL7qRGmO1JDJhJhVGwh8YZ26vKoFMqYEkkYyUoByz4eCkH Xv6VccQ6B4VdpJKMxBMuv6iPcBzk1pGZaDqzRKp7kwFlhznvGbgxk2/ICzabqGzGn4Ju P5lb5GiSPo6vHew/568KAKWY93c8Gx3gQKUDgRDCCxwoXi98FOyCvRkNORyeLnGXrg83 uiP5ZE0CRIRfPIevbdrCdh8H34TvUL+yayZKocQRGLMr2gPKpES1QLVI4nslpkyrFiAb YU2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k0kf51n6IyPfulhV98Cqhgqk8V87O+wD98aCTABuT/8=; b=hrRJO3GX+J1TWv1R9rsbF31R7IaVhT4qDOU33O4SrZJ40l3hReIP+gX/OdKuu65Zxa v5rSmbkWkrDFMVNFycBluPXBauHJDQs5NDlTw9n0MYsWWHZ44sCLK7ZcA+QI2tMMeYFv TB2Tg8F+TGl/zIhJjA2YNXBOkOuJFnsW/6M2/jLyfBrm0naMOZqdU0kRHdnoAqpv223t QnXzO05NVfveGTBkld3SIFsOqfc6xmv/Drp7nBv62ReqhMuh+Ff8HAyFpAkL0s15UeVg 2PFq8OUwXEidVM/INafkaIiXmx6ATltCu8HpLW3p57HKm14VCUTe1ZWMGzrgOJwv6fg4 c05w== X-Gm-Message-State: AOAM531xn651WwW9GGV9O3vzBVaUETbapKz0ik4FL1N1CJw5wkotFXBJ SEsETtTNY23Gmzq4q2aiCL0= X-Received: by 2002:a17:90b:1d92:: with SMTP id pf18mr2658168pjb.162.1643104801241; Tue, 25 Jan 2022 02:00:01 -0800 (PST) Received: from CLOUDLIANG-MB0.tencent.com ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id mq3sm201606pjb.4.2022.01.25.01.59.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 02:00:00 -0800 (PST) From: Jinrong Liang X-Google-Original-From: Jinrong Liang To: Paolo Bonzini Cc: Xianting Tian , Jim Mattson , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/19] KVM: Remove unused "kvm" of kvm_make_vcpu_request() Date: Tue, 25 Jan 2022 17:59:08 +0800 Message-Id: <20220125095909.38122-19-cloudliang@tencent.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220125095909.38122-1-cloudliang@tencent.com> References: <20220125095909.38122-1-cloudliang@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jinrong Liang The "struct kvm *kvm" parameter of kvm_make_vcpu_request() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- virt/kvm/kvm_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5a1164483e6c..1c98a47c8908 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -246,9 +246,8 @@ static inline bool kvm_kick_many_cpus(struct cpumask *cpus, bool wait) return true; } -static void kvm_make_vcpu_request(struct kvm *kvm, struct kvm_vcpu *vcpu, - unsigned int req, struct cpumask *tmp, - int current_cpu) +static void kvm_make_vcpu_request(struct kvm_vcpu *vcpu, unsigned int req, + struct cpumask *tmp, int current_cpu) { int cpu; @@ -291,7 +290,7 @@ bool kvm_make_vcpus_request_mask(struct kvm *kvm, unsigned int req, vcpu = kvm_get_vcpu(kvm, i); if (!vcpu) continue; - kvm_make_vcpu_request(kvm, vcpu, req, cpus, me); + kvm_make_vcpu_request(vcpu, req, cpus, me); } called = kvm_kick_many_cpus(cpus, !!(req & KVM_REQUEST_WAIT)); @@ -317,7 +316,7 @@ bool kvm_make_all_cpus_request_except(struct kvm *kvm, unsigned int req, kvm_for_each_vcpu(i, vcpu, kvm) { if (vcpu == except) continue; - kvm_make_vcpu_request(kvm, vcpu, req, cpus, me); + kvm_make_vcpu_request(vcpu, req, cpus, me); } called = kvm_kick_many_cpus(cpus, !!(req & KVM_REQUEST_WAIT)); -- 2.33.1