From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F800C433E0 for ; Sun, 28 Jun 2020 18:16:45 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38032206C3 for ; Sun, 28 Jun 2020 18:16:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="n6mDJeF0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="S6HNM78s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38032206C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0379587B62; Sun, 28 Jun 2020 18:16:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AgfW-in++SfC; Sun, 28 Jun 2020 18:16:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 568B387A33; Sun, 28 Jun 2020 18:16:44 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3619AC0892; Sun, 28 Jun 2020 18:16:44 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id A6821C016E for ; Sun, 28 Jun 2020 18:16:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A292687AFE for ; Sun, 28 Jun 2020 18:16:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ehIRjvxP6Yqf for ; Sun, 28 Jun 2020 18:16:41 +0000 (UTC) X-Greylist: delayed 00:07:52 by SQLgrey-1.7.6 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7B9D287A33 for ; Sun, 28 Jun 2020 18:16:41 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id EEE34B74; Sun, 28 Jun 2020 14:08:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 28 Jun 2020 14:08:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=aheclahDk///5 GhRrTGqTdZ5+2m4zl5MerfwfprpZmU=; b=n6mDJeF0uSkHbsARTbsLiKs7n0AaN J6JjhOVdZeFAZitxC1DvAcC+x/jjChjkOyTVPYZuCFFVJEe/zQPsRLeOjB48RYsR wyxW+s3Sa2MBRIDSSIQrioEpRjmbIGFzblQnIM43EUkKgi3CrU+EO3yGz/sNH2KZ MDPgH2kRh0TLN1dRpwQTZeDaRNUmTP5X8msgYWGXRWHog7k8mXYoB+df4N5iO645 5H9hERZJHU8ZUt6EWGZ8V51mb5XvkOruZ7x5Obch4LzRh7Gc6xGy/bRHVweKgUHL 9vPyyYxthF2OzpDPjw51bVG8/5spGxUiWIeAtGnPxsWiLgjh3hZDj2txQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=aheclahDk///5GhRrTGqTdZ5+2m4zl5MerfwfprpZmU=; b=S6HNM78s DaJ3zOUWR+Lrwj8MPazuwzXi/6t4e6pFXGElt033xRWrY0yIdpNcl/ruE0w1Axlo L7/u9ucx3Wt/tcqHHpixfsMXA4jxRRECZoL7Ko0/Ivw2mMXvASdBlmg2QwhdxO+/ BCCG0x0DHj8bturT6X2P/u9onWgk4lxrEwK39jQDSDO+P0LGTa0qhqMIRfJcKhCy OJe2LpKTsHFm7hgNRqDURSEWkhRw4bEpxWHECW6RUIqn9t0uPZqwBkw0+hK3T+qh KIM++z6VwtRlJXGpFD4fwGq9i8z3gqh0qkRG5ajz1ygXUwtzxXhWbUwC9DNWFd47 9WdQRS0Ctx8CKg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeliedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveev heehvdenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 1FB0F3280059; Sun, 28 Jun 2020 14:08:49 -0400 (EDT) From: Maxime Ripard To: Joerg Roedel , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH 2/2] iommu/sun50i: Remove unused variable Date: Sun, 28 Jun 2020 20:08:44 +0200 Message-Id: <20200628180844.79205-2-maxime@cerno.tech> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200628180844.79205-1-maxime@cerno.tech> References: <20200628180844.79205-1-maxime@cerno.tech> MIME-Version: 1.0 Cc: iommu@lists.linux-foundation.org, kernel test robot , linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" The pte_dma variable in the unmap callback is set but never used. Remove it. Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver") Reported-by: kernel test robot Signed-off-by: Maxime Ripard --- drivers/iommu/sun50i-iommu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/sun50i-iommu.c b/drivers/iommu/sun50i-iommu.c index a1563b54c743..3b1bf2fb94f5 100644 --- a/drivers/iommu/sun50i-iommu.c +++ b/drivers/iommu/sun50i-iommu.c @@ -556,7 +556,6 @@ static size_t sun50i_iommu_unmap(struct iommu_domain *domain, unsigned long iova { struct sun50i_iommu_domain *sun50i_domain = to_sun50i_domain(domain); phys_addr_t pt_phys; - dma_addr_t pte_dma; u32 *pte_addr; u32 dte; @@ -566,7 +565,6 @@ static size_t sun50i_iommu_unmap(struct iommu_domain *domain, unsigned long iova pt_phys = sun50i_dte_get_pt_address(dte); pte_addr = (u32 *)phys_to_virt(pt_phys) + sun50i_iova_get_pte_index(iova); - pte_dma = pt_phys + sun50i_iova_get_pte_index(iova) * PT_ENTRY_SIZE; if (!sun50i_pte_is_page_valid(*pte_addr)) return 0; -- 2.26.2 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu