Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD13DC433F5 for ; Thu, 23 Dec 2021 22:24:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350646AbhLWWYM (ORCPT ); Thu, 23 Dec 2021 17:24:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350490AbhLWWX4 (ORCPT ); Thu, 23 Dec 2021 17:23:56 -0500 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E1CC06175E for ; Thu, 23 Dec 2021 14:23:56 -0800 (PST) Received: by mail-pf1-x44a.google.com with SMTP id o67-20020a62cd46000000b004ba4d2f70b5so3987547pfg.16 for ; Thu, 23 Dec 2021 14:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=/tgTHkNO24YF7TEp6ddw/+GI148Bo3vvZKD6TVuZqKc=; b=c7szg7bIMyxnqWFnynUtnxGaauqoLh+3Dc6S1L+RSwCz5ENGT7B4D4aa+SQspWrX2a rHOJUCadILTnbnCczP3Ea15+LvPcNxa2iUJ3txp8CZI1YYVCU0I3LBaZl5B3sJeJVFCY l9pEFLKvoin2yHbgh4cLp/sdn/U/PTDabM53rofzKy8aCWs1X7tL0n66xEpp3sSnPSvi cxasmMkp6068upgJ32Xov6BFv5PPEzwQvMXTzmZGlrLBbPBezDxBvKSA4iI7E1sQ/iOf xZe+LLSR6XNgTD7iHa+PLkj6Ycy9Khq5RnX6A6BFDnJg5xmHMGAFh1bkmP9UJ5pg2lbD XubA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=/tgTHkNO24YF7TEp6ddw/+GI148Bo3vvZKD6TVuZqKc=; b=UO3EXDi2Lg6w0hdf33xsTfwyBFC5QlYUAoAti+/bkDajSRsjk1KmdKNOkJuL7SzmiI iNtfPIzDC+cHGWHnXPFbogxaKZAmusE9LpglEDJW9S0aGh8rnDNNDQoLVb/NKvCQFuRU Xg68ISYSSQ9V6Dow90ZTSzVLT4F5pSmXo5MG8t/rjIcFoZF2le0RmssQ7O5wL+dyWkiy ldHYZx6pqRS1xyKGSQ6ViRNnbuzZIjOkUs9Hs7YR6AvM1y283qoPhwOgigtsPLf6E6KN H6t4eXZR1FxpbCDG0AGuLTurs1ANI+v0BfF3WeMQYbIzQrIllU3Pudem0kxilJHAYWLA 840A== X-Gm-Message-State: AOAM532djiFEnGENuzJ9FeOMl5JNcS/NZOXXnPLO6Fojrw8rTKUDvj/A zzg3Foz4fDnGMukP4rZxy7r3vKnSoHE= X-Google-Smtp-Source: ABdhPJx61pNg8/a4KRQPgnCci3Pfp3tZaa8BoFTdRQXMVKG9zPf8CcCKzCdQLs/52ih+UKgSbOq2mqkJ57U= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:a17:902:aa89:b0:148:a2e7:fb69 with SMTP id d9-20020a170902aa8900b00148a2e7fb69mr4114580plr.170.1640298236092; Thu, 23 Dec 2021 14:23:56 -0800 (PST) Reply-To: Sean Christopherson Date: Thu, 23 Dec 2021 22:22:57 +0000 In-Reply-To: <20211223222318.1039223-1-seanjc@google.com> Message-Id: <20211223222318.1039223-10-seanjc@google.com> Mime-Version: 1.0 References: <20211223222318.1039223-1-seanjc@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH v2 09/30] KVM: x86/mmu: Drop unused @kvm param from kvm_tdp_mmu_get_root() From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Gardon , David Matlack , Mingwei Zhang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the unused @kvm param from kvm_tdp_mmu_get_root(). No functional change intended. Signed-off-by: Sean Christopherson Reviewed-by: Ben Gardon --- arch/x86/kvm/mmu/tdp_mmu.c | 4 ++-- arch/x86/kvm/mmu/tdp_mmu.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index 87785dce1bd4..cd093fa73d14 100644 --- a/arch/x86/kvm/mmu/tdp_mmu.c +++ b/arch/x86/kvm/mmu/tdp_mmu.c @@ -146,7 +146,7 @@ static struct kvm_mmu_page *tdp_mmu_next_root(struct kvm *kvm, while (next_root) { if ((type == ALL_ROOTS || (type == !!next_root->role.invalid)) && - kvm_tdp_mmu_get_root(kvm, next_root)) + kvm_tdp_mmu_get_root(next_root)) break; next_root = list_next_or_null_rcu(&kvm->arch.tdp_mmu_roots, @@ -243,7 +243,7 @@ hpa_t kvm_tdp_mmu_get_vcpu_root_hpa(struct kvm_vcpu *vcpu) */ for_each_tdp_mmu_root(kvm, root, kvm_mmu_role_as_id(role)) { if (root->role.word == role.word && - kvm_tdp_mmu_get_root(kvm, root)) + kvm_tdp_mmu_get_root(root)) goto out; } diff --git a/arch/x86/kvm/mmu/tdp_mmu.h b/arch/x86/kvm/mmu/tdp_mmu.h index 08c917511fed..6b9bdd652bca 100644 --- a/arch/x86/kvm/mmu/tdp_mmu.h +++ b/arch/x86/kvm/mmu/tdp_mmu.h @@ -7,8 +7,7 @@ hpa_t kvm_tdp_mmu_get_vcpu_root_hpa(struct kvm_vcpu *vcpu); -__must_check static inline bool kvm_tdp_mmu_get_root(struct kvm *kvm, - struct kvm_mmu_page *root) +__must_check static inline bool kvm_tdp_mmu_get_root(struct kvm_mmu_page *root) { return refcount_inc_not_zero(&root->tdp_mmu_root_count); } -- 2.34.1.448.ga2b2bfdf31-goog