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 42BDDC433F5 for ; Sat, 20 Nov 2021 04:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236950AbhKTE4Y (ORCPT ); Fri, 19 Nov 2021 23:56:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236386AbhKTEym (ORCPT ); Fri, 19 Nov 2021 23:54:42 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D0D0C0613FF for ; Fri, 19 Nov 2021 20:51:07 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id h35-20020a63f923000000b002d5262fdfc4so5062552pgi.2 for ; Fri, 19 Nov 2021 20:51:07 -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=hIrkLcH8rv7fQ+FYWepEW67ofcvrqQgpVgfFv1pyez8=; b=cIGkqH0/fjQWsd8RxvLqU1ee7ZogoYD7jllLMRcxpslHeaF/koeApADlhtszqCnMnl WLkjjq7xaKfUC7Yk9dVRrdpOZD+jA7JfxVQORUbmNwbxeP6p0d7kHf/CvPIwVa1P5t0V zDOXyq2AIzpF3CdbShmQvJtWVqNXQa3owVBN+BOod0zkeW7JottwdDLpfeP6s6gfSsQ3 vGgsKGE2PGEx6ns81A+JZpDTe2lr25j0AtJrUDaRuucdFVS6nW5a4bb5jZCST3AAOYVC JF/Dz0F0aTWnqKo398D5IybbLbvXk1l5NpeotUDbLj+k9LDdf+KoB9MI5j+T/CWP3iWz XxYg== 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=hIrkLcH8rv7fQ+FYWepEW67ofcvrqQgpVgfFv1pyez8=; b=7LG4wZeTuO8rwsV8TsOnrwIj7SQZMgJanLOldn0yozeGJgeGkLVVMgYqQvqvZqROZA YeiM15kl0KLfe4jEcxVs2ptc3KMcHhrLQmXU+kd7EqNzXTAW83N1UWOQsweWjOZKeRme XlP5tNYxZvYdnJyU9eIhgGLq7bZBnGvnOQJhImWsWUmZddUghQDYGnD0SEAz+sYQQ0EC SiFSQIlRYKrp/U/prHbxS4uW/bDZ+6TlU4BZN3rBnwgAWEYSufzi8wxKir5v86zmi85y mgG8JUUc0jWKPbn5s4P49c0xCTPGABrjWIT38Tsw5VBPsmtvVV8PzSplNvEHto1UhNl5 FXyw== X-Gm-Message-State: AOAM530z0EnkVBVoBcoy0y/CQdD4LsFDLSTkQOjFxfF2H6eo63qa1AsF 5f0c0a4lHk25Bh0lpmkp7mjSZttbaJE= X-Google-Smtp-Source: ABdhPJyp/o6q599dpVqneWFCpwJ2yVqPC2fEKI4NffP4IWUHeXOr4EINptvXQjp0ZbZprEkM/Cx2Z+jcYC0= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:a17:902:8f94:b0:143:8e81:3ec1 with SMTP id z20-20020a1709028f9400b001438e813ec1mr83023505plo.52.1637383866904; Fri, 19 Nov 2021 20:51:06 -0800 (PST) Reply-To: Sean Christopherson Date: Sat, 20 Nov 2021 04:50:26 +0000 In-Reply-To: <20211120045046.3940942-1-seanjc@google.com> Message-Id: <20211120045046.3940942-9-seanjc@google.com> Mime-Version: 1.0 References: <20211120045046.3940942-1-seanjc@google.com> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog Subject: [PATCH 08/28] 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, Hou Wenlong , Ben Gardon 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 --- arch/x86/kvm/mmu/tdp_mmu.c | 7 ++++--- arch/x86/kvm/mmu/tdp_mmu.h | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index 4305ee8e3de3..12a28afce73f 100644 --- a/arch/x86/kvm/mmu/tdp_mmu.c +++ b/arch/x86/kvm/mmu/tdp_mmu.c @@ -129,9 +129,10 @@ static struct kvm_mmu_page *tdp_mmu_next_root(struct kvm *kvm, next_root = list_first_or_null_rcu(&kvm->arch.tdp_mmu_roots, typeof(*next_root), link); - while (next_root && !kvm_tdp_mmu_get_root(kvm, next_root)) + while (next_root && !kvm_tdp_mmu_get_root(next_root)) next_root = list_next_or_null_rcu(&kvm->arch.tdp_mmu_roots, - &next_root->link, typeof(*next_root), link); + &next_root->link, + typeof(*next_root), link); rcu_read_unlock(); @@ -211,7 +212,7 @@ hpa_t kvm_tdp_mmu_get_vcpu_root_hpa(struct kvm_vcpu *vcpu) /* Check for an existing root before allocating a new one. */ 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 3899004a5d91..599714de67c3 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) { if (root->role.invalid) return false; -- 2.34.0.rc2.393.gf8c9666880-goog