Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4246683pxb; Tue, 25 Jan 2022 06:36:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy09nNen3WA1MgF42vrTi1WYsDdbbZtqRRxdGxnnbHTsHPPEEIewUmErzlEuxAV+SUYeWQA X-Received: by 2002:a17:906:c0d3:: with SMTP id bn19mr12334081ejb.617.1643121419218; Tue, 25 Jan 2022 06:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121419; cv=none; d=google.com; s=arc-20160816; b=cOchEt0rcIGHCZ+kP7sdG/npStKipfKtHimLFWoF7i1yhrLGFwygd8bs3WyL1iRNQV Y2h/ylt9J0pis22j+b69qUNzEIZtlzSprO5+SsCY2Nh+jjqW/zm+6FHHxUgeq+vtlhov EGlCBARqbh+itc02Ni883u359xzGc/vH9XLqidxE1/sp/NNVqBhxiruly19fg8eXziJ2 ATA5pqo4QYBOVRS/vW7CIXkZzwQ0Ckm09TMJV378qByPndrEghyijlDg1oUP+GhmkwD6 2eGy/PVLNhNLW4LZSP/nTv3PFy+CBFqgYQY9TNMHnNuOtBNpgmi3wCbOzEkuAoUkELvp HIfg== 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=oYvl3LXfq2Z7qoIfNjZ5GsgYEqtM3wk9CuvlXSIi+kA=; b=gNElGWW0z7By9TSwTQXGiOafYt5m+mx0YVslgAsbI2j3l6rTJv1sRgAEWYL18TfsWQ SSe16YD2cbzMqLiCHbmjjt/SV3HJdxcgrtzo3hG90A+AiCwlDf4fSWgys1lzUc5vV9Rn sbDx1JN/glabMyeTygQc4ROGNs3Z6ulnZ89YI/JTGUtGUZjszeUghfpT2NidpMHKUpvJ Irl7CaKpnW3clfExab+QIyT8JP2PMsp0zioRLynAZt3seuBiJcrr7YWQfnd+tvr2drpe UTySDz5VWdYXGeG8AYcjBkcNgDdJj2Rewt+G5+IcerTKVLLfsJuMYTzJNRwDdnz173Bj JTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Wlj/sKZX"; 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 a9si10565946edn.506.2022.01.25.06.36.33; Tue, 25 Jan 2022 06:36:59 -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="Wlj/sKZX"; 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 S239133AbiAYKDs (ORCPT + 99 others); Tue, 25 Jan 2022 05:03:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238468AbiAYJ7a (ORCPT ); Tue, 25 Jan 2022 04:59:30 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A451C061751; Tue, 25 Jan 2022 01:59:30 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id k17so1215266plk.0; Tue, 25 Jan 2022 01:59:30 -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=oYvl3LXfq2Z7qoIfNjZ5GsgYEqtM3wk9CuvlXSIi+kA=; b=Wlj/sKZXZpqy/o1WYQu+xr6CjK2FGzWSNz5NdVM4P9zzuRB0zxYaBgxFZONutu7xka EmdMealNBliAlnARYU4X5e6CkhJYajhepYqoI/N0tdLPXuG81BbVram+8k1pL562Bw84 /pfACoBuVGEaOyOjBS/beEz03XCBvTQyz3hfFvn64B/FazsZMojNICTOrYx5mO/ms9TE 1Rs7hASxXb9SIZ7nOcfUbIHyn30T1nVeX3J0OEbRER3UKskVCVh4giP6/CFH8yvW2Tjw 8GDcaO4i1nIIK0NXIb4rp9SOBIZ+J5Q1BEc2TnD7wOTzZ+cHs36X9AURRpOy7TQp3XTH sFBw== 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=oYvl3LXfq2Z7qoIfNjZ5GsgYEqtM3wk9CuvlXSIi+kA=; b=WwFSA6+RsA6RSnKIkgnaX6VhNF4aOmYDx0053rM7TFCm34JTR4kC//eVBt9hFkhW7A XESk8+HyxGvLaPrAlxuN9qvpAYkXByioxVx8NcACAUMonuP/CbEX/k0bdtIYC3TEGE8+ dszG8wup8C+dP8iSFiWD8q9IiDqs99F2G2u/Z3QZginczrYH/ssn+VE/uL791eapksKZ 2r5TDvLyHDpgzcQNDYYPyDN6ZoibGUc3SpDjqTQD2OV4DPHs847xdTTaer0YtSDKOPIF FOgtmo3JpH+FL0f7QUiWoiCIx+M4diXE+MZ33qEBbU2XphqKECl2agnJZGVRNz1h96gH yB3g== X-Gm-Message-State: AOAM5339MvZeS5uag/5qp1NsVaWrvOVN+GRWmocZQ6D5F6csEXzsgeco zdVNJo4dfpP2glTwHB9zu6M= X-Received: by 2002:a17:90b:3b88:: with SMTP id pc8mr2716352pjb.245.1643104769736; Tue, 25 Jan 2022 01:59:29 -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.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 01:59:29 -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 05/19] KVM: x86/mmu_audit: Remove unused "level" of audit_spte_after_sync() Date: Tue, 25 Jan 2022 17:58:55 +0800 Message-Id: <20220125095909.38122-6-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 "int level" parameter of audit_spte_after_sync() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/mmu/mmu_audit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/mmu/mmu_audit.c b/arch/x86/kvm/mmu/mmu_audit.c index 9e7dcf999f08..f31fdb874f1f 100644 --- a/arch/x86/kvm/mmu/mmu_audit.c +++ b/arch/x86/kvm/mmu/mmu_audit.c @@ -163,7 +163,7 @@ static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) inspect_spte_has_rmap(vcpu->kvm, sptep); } -static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) +static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep) { struct kvm_mmu_page *sp = sptep_to_sp(sptep); @@ -225,7 +225,7 @@ static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) { audit_sptes_have_rmaps(vcpu, sptep, level); audit_mappings(vcpu, sptep, level); - audit_spte_after_sync(vcpu, sptep, level); + audit_spte_after_sync(vcpu, sptep); } static void audit_vcpu_spte(struct kvm_vcpu *vcpu) -- 2.33.1