From nobody Mon Sep 15 05:55:04 2025 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 12131C3DA78 for ; Fri, 13 Jan 2023 18:57:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230247AbjAMS5B (ORCPT ); Fri, 13 Jan 2023 13:57:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjAMS47 (ORCPT ); Fri, 13 Jan 2023 13:56:59 -0500 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C26CDAE47 for ; Fri, 13 Jan 2023 10:56:56 -0800 (PST) Received: from lemmy.home.8bytes.org (p549ad69d.dip0.t-ipconnect.de [84.154.214.157]) (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 mail.8bytes.org (Postfix) with ESMTPSA id D53222623DB; Fri, 13 Jan 2023 19:56:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1673636215; bh=wuU52J1QjtpdEUmFc+7pSu1gYylARkE55yw7iLw3DsY=; h=From:To:Cc:Subject:Date:From; b=lK1FO4mJJ2mc8eP36V6B/q7XdFfDSDnU6HLtFX13gnmZLVgNclV1QeINWmyHqq+FU alaEJe/36bKO/NXtEYBKPPpFbTB/3wnKupe6WPv5Odj7F3YhSN46DN0VV2Dm91VjK/ 7hmfSxAIjHmzHHO7nz3sc28HMBhRwmwZdIKt9AT0KRWGjQwsV+y6Mb4nYenuItmTWd Bkoa/MuuKL46tXsNR/cGGEEHttu9EmEQDo4ieEy9RstmcUc6oR8bYMrer9x0U6IrPt DHVcKClqmvxDQxfmRGihg1DcrZV95f6de9xtezgcPjJT8uRgejLp+2OI7jcCB+RK5J DJQ+UX3+3EE3g== From: Joerg Roedel To: Joerg Roedel Cc: Lu Baolu , Will Deacon , Robin Murphy , Vasant Hegde , Chunyan Zhang , Jason Gunthorpe , Sven Peter , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH] iommu/ipmmu-vmsa: Remove ipmmu_utlb_disable() Date: Fri, 13 Jan 2023 19:56:40 +0100 Message-Id: <20230113185640.8050-1-joro@8bytes.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel The function is unused after commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") and so compilation fails with drivers/iommu/ipmmu-vmsa.c:305:13: error: =E2=80=98ipmmu_utlb_disable=E2=80= =99 defined but not used [-Werror=3Dunused-function] 305 | static void ipmmu_utlb_disable(struct ipmmu_vmsa_domain *domain, | ^~~~~~~~~~~~~~~~~~ Remove the function to fix the compile error. Fixes: 1b932ceddd19 ("iommu: Remove detach_dev callbacks") Signed-off-by: Joerg Roedel Reviewed-by: Jason Gunthorpe --- drivers/iommu/ipmmu-vmsa.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 3112822ac7be..bdf1a4e5eae0 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -299,18 +299,6 @@ static void ipmmu_utlb_enable(struct ipmmu_vmsa_domain= *domain, mmu->utlb_ctx[utlb] =3D domain->context_id; } =20 -/* - * Disable MMU translation for the microTLB. - */ -static void ipmmu_utlb_disable(struct ipmmu_vmsa_domain *domain, - unsigned int utlb) -{ - struct ipmmu_vmsa_device *mmu =3D domain->mmu; - - ipmmu_imuctr_write(mmu, utlb, 0); - mmu->utlb_ctx[utlb] =3D IPMMU_CTX_INVALID; -} - static void ipmmu_tlb_flush_all(void *cookie) { struct ipmmu_vmsa_domain *domain =3D cookie; --=20 2.39.0