Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp642729lqp; Fri, 5 Apr 2024 04:58:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXeXIRarj0ZRvWdlbHGD/G2ypwNhd3Ef/JS5oE/JTSEXT1h3OknUWRgDAMs83SoPQOZ0LAnJKmDh9aiyrRqgCm0aJx30cpr2G02Sf6ycw== X-Google-Smtp-Source: AGHT+IH/ft7O+R2p+1hPAw26dNoKKsGfjtE7739eBmYPlr3ydw4tdnTQ27kxIxKYIHmyX50khfI1 X-Received: by 2002:a17:902:c1c1:b0:1e0:a0d5:1d23 with SMTP id c1-20020a170902c1c100b001e0a0d51d23mr1128828plc.29.1712318318715; Fri, 05 Apr 2024 04:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712318318; cv=pass; d=google.com; s=arc-20160816; b=bAwYFFHP6v7ZkRR7p2ylNtYT/xHPw+OI4GBBfoHm3ZvC1T1icigA+ybH86rYyVnM2f 0nls3/XMzfVs/VUpfVPNVVWbXTaExpFTLkd2IL51BY62GRaoSWPyayVIzwUrRlFelg3x erSCHXDlBIMd4BOI6BTglZcrm4NPcKIFOsG5JMQ86HRWC2JqHmUvkARIZJ7ry6hxnVGf 0Xo/89m3n/OH3ZR8i2cCyO/dWlB7YGfONBomLaA03LnLBHMzeARsdvu4Xt/EuTkq5Bui XHyjBBsIYaYVwk2ZxoBxYaRxuXMtziHzGVtaUY89yry5bx6c2U9EHj8FGpeEdhVWv14c mzMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PYlVlmhvJPdz+cTS0GmxjcvjKIkp+1zDoZOzzNIMhco=; fh=ex9tfTLfEV9yrneSsuhwuLnHZmRo6aoxU3STffoDbx4=; b=ZI/uKA+eLQl9USIusmYe38vM5B1wwjJcIEtI7HFir8BouYNu7SDlLf3w7rHifrbdx8 xzCV8Ee6EC3qFcXLgVQjEd5Ijq2Mg2VYqWJzdJ8prW+5YnOT+cp76FylgPeAv/mZO9oi 0vlfqft8opkZCKhAvl4aiMN0eeU0XDDON61+zIGxv+QgZiY70GJByNY6z607hGzFCn7K Xzl9+i2gvBEZqqSSgkF1l+9CytfadjJYRMTFx1woKdN2/gaxvbgrJbLw7BF2ePIONIsH 8bMBjp4p3bu1Cxa6nRZZGUoseILEv4afiDg/045ZcAjJOyyGW0h46UfZp94VeAd5yirY RVhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YNlN6w8D; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-132935-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d17-20020a170903231100b001e2a31c0f5dsi1255217plh.340.2024.04.05.04.58.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 04:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132935-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YNlN6w8D; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-132935-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E68C282228 for ; Fri, 5 Apr 2024 11:58:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C1B316C84A; Fri, 5 Apr 2024 11:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YNlN6w8D" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4011216C6AE for ; Fri, 5 Apr 2024 11:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712318306; cv=none; b=dJc//wwHbHdvHChvf+mxpO2mYYzs+lI2bymDY3y4UFfsJulNUS9rASrUbmgtbVVooxK0fEaBc+wC6vMlGRmLNc6D5e0Rs16parDyTt6CbiU6P+jCvyXnpqSiGVmbThnbMKapu+IquXb3cXRDokzUybyJZWheFAKssqOAqMmqvhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712318306; c=relaxed/simple; bh=MVPfw12aKDAKYxBgmyfiqiiyclWrH3J9VU7NBfl7yag=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JV8+LEIyrSaPam1SANerHvgTh6OZDeiNsZaw7uK43TiO06jwFemRVhKdHoa17DN8Fnv5CZ6M9pPtQ6ikOMC0j9ggg4zHOoBuJLXT19Guh1bhtPGZ8LnM422QV9YAOhuangpekRoXgTQ8oryJJ37hmSWTdepSL0p1NtkiH6M6Jdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=YNlN6w8D; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712318304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PYlVlmhvJPdz+cTS0GmxjcvjKIkp+1zDoZOzzNIMhco=; b=YNlN6w8DWj2tHYEhPnlZTjJDAT5rIUMHYTzkyGZGn2RTFtja+vhsy+JFCg+lotzLqk7WCj 71tkCzOH1gOGjMDApLFS6Qnb4jATaqhgmf0pczWsGjThXAzy5gHCKuxbvGYY05yDfPHawP g1X+dZd8TXhb+giz/gjX5Yc/Tbso4PI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-94-jWBq89b1PjOkiIzryzMcEA-1; Fri, 05 Apr 2024 07:58:21 -0400 X-MC-Unique: jWBq89b1PjOkiIzryzMcEA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 07BB2382C473; Fri, 5 Apr 2024 11:58:20 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 470FC40C6CB5; Fri, 5 Apr 2024 11:58:19 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Marc Zyngier , Oliver Upton , Tianrui Zhao , Bibo Mao , Thomas Bogendoerfer , Nicholas Piggin , Anup Patel , Atish Patra , Sean Christopherson , Andrew Morton , David Hildenbrand , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 2/4] KVM: remove unused argument of kvm_handle_hva_range() Date: Fri, 5 Apr 2024 07:58:13 -0400 Message-ID: <20240405115815.3226315-3-pbonzini@redhat.com> In-Reply-To: <20240405115815.3226315-1-pbonzini@redhat.com> References: <20240405115815.3226315-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 The only user was kvm_mmu_notifier_change_pte(), which is now gone. Signed-off-by: Paolo Bonzini --- virt/kvm/kvm_main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2fcd9979752a..9701888811ad 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -595,8 +595,6 @@ static void kvm_null_fn(void) } #define IS_KVM_NULL_FN(fn) ((fn) == (void *)kvm_null_fn) -static const union kvm_mmu_notifier_arg KVM_MMU_NOTIFIER_NO_ARG; - /* Iterate over each memslot intersecting [start, last] (inclusive) range */ #define kvm_for_each_memslot_in_hva_range(node, slots, start, last) \ for (node = interval_tree_iter_first(&slots->hva_tree, start, last); \ @@ -682,14 +680,12 @@ static __always_inline kvm_mn_ret_t __kvm_handle_hva_range(struct kvm *kvm, static __always_inline int kvm_handle_hva_range(struct mmu_notifier *mn, unsigned long start, unsigned long end, - union kvm_mmu_notifier_arg arg, gfn_handler_t handler) { struct kvm *kvm = mmu_notifier_to_kvm(mn); const struct kvm_mmu_notifier_range range = { .start = start, .end = end, - .arg = arg, .handler = handler, .on_lock = (void *)kvm_null_fn, .flush_on_ret = true, @@ -880,8 +876,7 @@ static int kvm_mmu_notifier_clear_flush_young(struct mmu_notifier *mn, { trace_kvm_age_hva(start, end); - return kvm_handle_hva_range(mn, start, end, KVM_MMU_NOTIFIER_NO_ARG, - kvm_age_gfn); + return kvm_handle_hva_range(mn, start, end, kvm_age_gfn); } static int kvm_mmu_notifier_clear_young(struct mmu_notifier *mn, -- 2.43.0