Message ID | 20221018024258.19073-7-yong.wu@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1747058wrs; Mon, 17 Oct 2022 19:53:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dLwd1icyQ+lzINeEVtIo5ntPauOxw4zFVnifZPT6fcFm6qa/rHYO1WTbTEp6cG+JwHFVf X-Received: by 2002:aa7:dd57:0:b0:453:2d35:70bb with SMTP id o23-20020aa7dd57000000b004532d3570bbmr653998edw.26.1666061623731; Mon, 17 Oct 2022 19:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666061623; cv=none; d=google.com; s=arc-20160816; b=G1nN81ixHdYb6I/eP5tm9OoCpSvpE9AIxyoy1yynmtGec7h97gzB7Rg441N0NorOuS nfm0AXrENLUnpKHjUe0e8sqlHxMLn2fg27qgKOtfYm3BKlezN37QnQtKNdMw5IzkRb0p faNbSfGaxp2NjbY77JHwjDTgbhJDsd653u3aEjlN1h21FEN6/ShT8nPzDX9EcqSsh/4v EvGBzI3vE0aRoMrqtD6H5fMWd0o+HBdGAHXE6mNwRCWuSRW294JeOIY1R5OcK0uB+aM3 YKuFfYDBW6wPDT+Lsz6XSYpCoK6RzoEpdGmym+M6zVxvrJaYVLiJj6sxqeYhn0Sh8a4z 0ALA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IYogOVe8FwG0NyOno3zg0SlWhd1wK8A+0xGmvuPEsF4=; b=mveHi5ZC391FeJ2kVydOP8anB1O2c1/K9BeTy+G0PsCuM8hj3wZbDxK0eXxSWowlKN 1OLBhzYzY2SoNBT4/mL4wykrvYgDxN3uEXUpyeV/RjKlkhJvWpN+Kpx+RszADxcQs0Qc qBMEC0eyphivmh9XX77hz37T07n9K3eOShaKWTr8qI9wnlXhu6ltpqxJ9z72NvBctxPq NYfL4tVpT6bb5VIWqWALrEcOGmlYHlrhEovWw5xjnM/FAz49LJ2lJZ9Six8k4ZlXdN0m OfetPOMt/rNIwZetLseMHB34fFRQVokE1QjdGxY60uuUY3ufv1LBO/ZgIzyytmBIgSht xFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GmF7GrtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc36-20020a1709078a2400b0078e15c30a6csi10322522ejc.559.2022.10.17.19.53.19; Mon, 17 Oct 2022 19:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GmF7GrtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231213AbiJRCoS (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Mon, 17 Oct 2022 22:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbiJRCoA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 22:44:00 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D99C69623F for <linux-kernel@vger.kernel.org>; Mon, 17 Oct 2022 19:43:58 -0700 (PDT) X-UUID: d106723f32b2448fa0ac5a69ee9decd6-20221018 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=IYogOVe8FwG0NyOno3zg0SlWhd1wK8A+0xGmvuPEsF4=; b=GmF7GrtFmtWE0wcTRmxHIJCyLKykSurGx9Lp66pU993yPJ+CdfiSeJU1b6MrWjF0G3brCXUAgoTqSFqj41XKsVT8FQe0I7sO34Hclp+eTjyr9QK89jila6HvU5Nor/+BUHj8AamPjXWvA8U/56JmokAQNb/HAH8IHzYpKuVnZh0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:ca2341be-26ed-4e0a-af70-bf57ecc58605,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.11,REQID:ca2341be-26ed-4e0a-af70-bf57ecc58605,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:39a5ff1,CLOUDID:bdd317a3-73e4-48dd-a911-57b5d5484f14,B ulkID:221018104356QHKWENC5,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: d106723f32b2448fa0ac5a69ee9decd6-20221018 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from <yong.wu@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1731871103; Tue, 18 Oct 2022 10:43:54 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 18 Oct 2022 10:43:53 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 18 Oct 2022 10:43:52 +0800 From: Yong Wu <yong.wu@mediatek.com> To: Joerg Roedel <joro@8bytes.org>, Matthias Brugger <matthias.bgg@gmail.com>, Will Deacon <will@kernel.org> CC: Robin Murphy <robin.murphy@arm.com>, <iommu@lists.linux.dev>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Yong Wu <yong.wu@mediatek.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, <mingyuan.ma@mediatek.com>, <yf.wang@mediatek.com>, <libo.kang@mediatek.com>, <chengci.xu@mediatek.com>, <youlin.pei@mediatek.com>, <anan.sun@mediatek.com>, <xueqi.zhang@mediatek.com>, Guenter Roeck <groeck@chromium.org>, Dan Carpenter <dan.carpenter@oracle.com> Subject: [PATCH v7 6/6] iommu/mediatek: Remove unused "mapping" member from mtk_iommu_data Date: Tue, 18 Oct 2022 10:42:58 +0800 Message-ID: <20221018024258.19073-7-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221018024258.19073-1-yong.wu@mediatek.com> References: <20221018024258.19073-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746992233036856155?= X-GMAIL-MSGID: =?utf-8?q?1746992233036856155?= |
Series |
iommu/mediatek: Improve safety from invalid dts input
|
|
Commit Message
Yong Wu
Oct. 18, 2022, 2:42 a.m. UTC
Just remove a unused variable that only is for mtk_iommu_v1. Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> --- drivers/iommu/mtk_iommu.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index f7ac102e343f..cb8df26ec71e 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -223,10 +223,7 @@ struct mtk_iommu_data { struct device *smicomm_dev; struct mtk_iommu_bank_data *bank; - - struct dma_iommu_mapping *mapping; /* For mtk_iommu_v1.c */ struct regmap *pericfg; - struct mutex mutex; /* Protect m4u_group/m4u_dom above */ /*