Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4245784pxb; Tue, 25 Jan 2022 06:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlDjWb2omq07NHCagXeQXh0KYgaMZB5odV+ZLvKT4Gqo8FU4Tyitvc4G/o3taGaew7uCcG X-Received: by 2002:a05:6402:4401:: with SMTP id y1mr5209650eda.215.1643121360396; Tue, 25 Jan 2022 06:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121360; cv=none; d=google.com; s=arc-20160816; b=ZExuIotjo9JhnAJ7c4Sno1N6OWXohmqgQpffTEMg1eKiZYP676ubYvyh+YpXbbHQjT 7eKnWAbbKqXoZtdlND2lMVfddi2Zqq2iSihQubUVg+YDYXMwiBEJU3aXPxjQId/8hWIH om+Dr0LLkQm6R/w4L8vxEmHl4mb+rL/2JSaXqMSvP8PUzmY6I25Kmb4i5ptwVc2WgNDI wVtk4HsmiBsK/exzSxGiiefH4OnNi43bbV0nk09wQ/8CAB+vso1DW4soztvExqeptCmW OtmrDmvhZwxjh5iIBGsNiMcLwJzrbep6ojo6Y/5Vv36sT7hMP+MDmUs2VrFt6s/Kkl0T UTGA== 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=MQeM6vIxMZvFlKo4v9hbzR1rquivdNYZS0j3o7B/fwk=; b=AqVhxzRsQ8Zntemv4AsY45nctwlHC2WRseXo8FPXxRy6GUkrUv2/BjESeUwPvVUyTg 2Wxy/VZ1dtZWqz9IMUf+AtUj3dXdvMqeK6y+el/mhFw+8zZCO6jQT0BDv7gScvx0Gpg3 Fz+ZNDpAWrX8TeTxUtvM1LcNx+6EIIRUKPNjtKSeJxIdw784AQZTUPUubn6NiK1lcl27 C6hh52vTGlbXk6dUPm+fovJzjQ5AOSZ5C02Boc+9nRk32IoHmsGmrMVoNLDHDOgssdj0 Hb5UyO/35QauJqteEwm5lyVeicMS14d38xLF8J9dKbPJi9BPl/gc9z9fG7NCGmjmsvGN gWrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S/XB1UxN"; 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 b6si10599766edm.480.2022.01.25.06.35.34; Tue, 25 Jan 2022 06:36:00 -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="S/XB1UxN"; 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 S238600AbiAYKCd (ORCPT + 99 others); Tue, 25 Jan 2022 05:02:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238381AbiAYJ7W (ORCPT ); Tue, 25 Jan 2022 04:59:22 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43DB4C06173E; Tue, 25 Jan 2022 01:59:20 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id d7so18734260plr.12; Tue, 25 Jan 2022 01:59:20 -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=MQeM6vIxMZvFlKo4v9hbzR1rquivdNYZS0j3o7B/fwk=; b=S/XB1UxNdTAu3Pt96Tx2FkHJeD7V1KI5QaimN/TSbPStOm23ogD0frWiuy4Gjvut+v YZnf+wOLcvtgnN6k/Zt6EP+ZK+lLKYPMGnu0UOpaXHq2fq4VaZQyZeJBLEseuzlTFfyb 93M8Dc0wf5bXyTjY3CtAFrxJdZXKRed4n5MhgfeYzmZ4moD4daebq05x+7YoZkh4gVkT wW3AfMIIMQNRChxBSy5K+djQE+LpyHIK4jpotGxt/kbyrHxAg/8HaTpvJdX/Y/A7+wL1 5FF4mDE36SbkZm5MI03NL9VXB1iwDpfFsQ9E0v9kfkJ5DYlWVRWwWbKHLe7mc3Iv8lXe 3rkg== 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=MQeM6vIxMZvFlKo4v9hbzR1rquivdNYZS0j3o7B/fwk=; b=Wq6VwrBI852Q5pZbS6bnPXQLNPx7h5I/SW6vMaPuW1lHFI5nTsA28OY+tNqm9cEtTm 7gvvpiqyidQlRqlE6BvXs9R35aBWxm/GoP+falaLiw8xoQjekWofmbpGvqds3aYvmarK xNBsUcXyNM+CefHv7H5ILglEj5IUEwmekHEivf2Nh+Hr09VGjQJXNQn9XV6IEeSECREc ciKC6LYVDpvNStTjgAmDbz0CFwdxI/B2d52cncO3UchcVD5xv6Z/8svrkbSeoG+JngtC KWftL13lO5NcHyl0RCV88NECRP9Z/5BArwiFBhb4IjJsb1wtKyAACWxEz1ncPCBnv5AM D+/g== X-Gm-Message-State: AOAM533kveZ7WzR7lViFvFj+WcoUEUEyuR5Y8qzE9kmcX5xTjcwbwhpB k25UbMHB4+i01Hecv0emQqfo31OemgXxfg== X-Received: by 2002:a17:903:41cf:b0:14b:5b0:484b with SMTP id u15-20020a17090341cf00b0014b05b0484bmr18518725ple.155.1643104759854; Tue, 25 Jan 2022 01:59:19 -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.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 01:59:19 -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 01/19] KVM: x86/mmu: Remove unused "kvm" of kvm_mmu_unlink_parents() Date: Tue, 25 Jan 2022 17:58:51 +0800 Message-Id: <20220125095909.38122-2-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_mmu_unlink_parents() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/mmu/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 593093b52395..305aa0c5026f 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -2307,7 +2307,7 @@ static int kvm_mmu_page_unlink_children(struct kvm *kvm, return zapped; } -static void kvm_mmu_unlink_parents(struct kvm *kvm, struct kvm_mmu_page *sp) +static void kvm_mmu_unlink_parents(struct kvm_mmu_page *sp) { u64 *sptep; struct rmap_iterator iter; @@ -2351,7 +2351,7 @@ static bool __kvm_mmu_prepare_zap_page(struct kvm *kvm, ++kvm->stat.mmu_shadow_zapped; *nr_zapped = mmu_zap_unsync_children(kvm, sp, invalid_list); *nr_zapped += kvm_mmu_page_unlink_children(kvm, sp, invalid_list); - kvm_mmu_unlink_parents(kvm, sp); + kvm_mmu_unlink_parents(sp); /* Zapping children means active_mmu_pages has become unstable. */ list_unstable = *nr_zapped; -- 2.33.1