Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4252566pxb; Tue, 25 Jan 2022 06:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4m7NdjKt63JCapU0leu+Q/pVeG7Q8w0Du87BuGhONV54Yba7HJBMUtswJF+yR6QlL4nZ2 X-Received: by 2002:a17:906:b1c2:: with SMTP id bv2mr17527545ejb.395.1643121870881; Tue, 25 Jan 2022 06:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121870; cv=none; d=google.com; s=arc-20160816; b=cEpDKD+O0mrliUZH9B47l1j+MYcfs4gjwEWrlORpfg2F4KGuF65HI6P0pt0+fX+LK2 5eRnbaeDUFqXN/tWWIXcBOiNRk5V3UlpHanq2xGdmBq2y8GydQrWGh56RWIDvPeOfbYQ UE1tryCsOCLtEWpgEbf0MzJSwOVTqPI1aj8QmhnVI8sM1+4guC9mwzTRRDFrC2aMYKry IwhAEowlF5i8TWVKM7lWqwOM2YFsDgbo2cBxN9DPeqwcXZdJTQ3/1k/WzfUGAZTYv0fm G5nhyBBrHwIjFdXACBgacXuoW5IGYriouemE2Qdq6FLy9mvy8dgHGbANJUh1kaiRtOqm PVyA== 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=+9/h4WgwvINM2uXFYzps/DVN0t3qraH1rjLtTgc8ipg=; b=jIxtcxxpgvsOsqncbCCg2pG9LPpu6FOcnP7smxBp3qgxEzP/r84gp0/Wg3cpUD5oqy l/4/yzs739FENJBFezaXRdBTSCPBQUWkun0P9u9LfQM5T4tqqajEYmvoWDIonhOyO088 c2fqB+wWDNVi94WoVIPacrQAysK6PC/WflVyKIbAd6rI4QB7mhITUVGHBz/Hfkj43teb e5R6pMOzlOHWu7oWqpSvqK+T+umuJhYK204WBKxKtdmS8wBau28FtpTKVkqt5W7rguG2 BxC0KPF4dfpcVaEpeTCe3p0wAALwzGQD722sgDq+25FN4wZAv2UlfQySfKsvefoKrOBC hIsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BY1Kpc6u; 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 he20si3679697ejc.771.2022.01.25.06.44.05; Tue, 25 Jan 2022 06:44:30 -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=BY1Kpc6u; 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 S242239AbiAYKIv (ORCPT + 99 others); Tue, 25 Jan 2022 05:08:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238629AbiAYKAG (ORCPT ); Tue, 25 Jan 2022 05:00:06 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4EDEC061768; Tue, 25 Jan 2022 02:00:04 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id z5so4853747plg.8; Tue, 25 Jan 2022 02:00:04 -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=+9/h4WgwvINM2uXFYzps/DVN0t3qraH1rjLtTgc8ipg=; b=BY1Kpc6uzILlB69ntbdcG2NpCbHQ8Kgd1/1Li8Tju2eMKDY9dOYABLBX/ZV+gNSB4x HKQJ9oDd0SWF0AGc9y99lvHQYi1aKBZUxPtjknshvOzJpm8gnILRuU4pwvel550nWeQz 5iRbxJfwOvnPPAejDvi/6WSyjS5KlAq2lnrFu+vqvmn9Iy6dYAFq/uWO1LA71qjEY5oe zdSQZId+y8KwX+VtkbC7XsUzfJ8DfMd1+NtknroUpNHq79pEYBUHqw0shUV7skIXIF8y sF2lPJNBbYgDDzh6yGDM2gepbiOcr0OaSV+5+jn1bdNr5lTNHNpA92Ihrdj1qO1MSUp6 D1Ew== 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=+9/h4WgwvINM2uXFYzps/DVN0t3qraH1rjLtTgc8ipg=; b=Kr+rEoo3hR2Ft1viIC8mRlBAsR7C/NX2q1R6bdCMelumw8T7YOSrZP0twuwM9LXkYe izbihSOk11RRKNUmv124csJj5wxlRVl9PE84HlmNz+9DOcvIWoAWzmtRx2LgWjLC5y2w +Op8JeLHeO02ychT+ZBNbh7XuOMY6ULth9CTE8Bhfxc78ZDzLVZzuTS+bWYsibhvq/pm z/le88QZlh64PazknsxrHhTQnuUMT6Agmgw38BCvnrQfuCQN63o8XFb1yG106GmAmdnM yDdCMwj6lMLKmvAMb+JCzD/4Jr3SG5W48CmKXSOiRRVuIOYhFiH6EMy0BPgsAGmGQQxH z/Fw== X-Gm-Message-State: AOAM533DA1OFUDVmNYgjqD6iwX2kchs4P20qIwENgBcDujKm1uCN4lWJ 4WaUB7goHi8SoJM+kHrq0oI= X-Received: by 2002:a17:90a:5d8c:: with SMTP id t12mr2601800pji.189.1643104803775; Tue, 25 Jan 2022 02:00:03 -0800 (PST) Received: from CLOUDLIANG-MB0.tencent.com ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id mq3sm201606pjb.4.2022.01.25.02.00.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 02:00:03 -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 19/19] KVM: Remove unused "flags" of kvm_pv_kick_cpu_op() Date: Tue, 25 Jan 2022 17:59:09 +0800 Message-Id: <20220125095909.38122-20-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 "unsigned long flags" parameter of kvm_pv_kick_cpu_op() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4e438e009ba9..acd34adc097f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -8940,7 +8940,7 @@ static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr, * * @apicid - apicid of vcpu to be kicked. */ -static void kvm_pv_kick_cpu_op(struct kvm *kvm, unsigned long flags, int apicid) +static void kvm_pv_kick_cpu_op(struct kvm *kvm, int apicid) { struct kvm_lapic_irq lapic_irq; @@ -9059,7 +9059,7 @@ int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) if (!guest_pv_has(vcpu, KVM_FEATURE_PV_UNHALT)) break; - kvm_pv_kick_cpu_op(vcpu->kvm, a0, a1); + kvm_pv_kick_cpu_op(vcpu->kvm, a1); kvm_sched_yield(vcpu, a1); ret = 0; break; -- 2.33.1