Message ID | 20230104125725.271850-5-baolu.lu@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5133002wrt; Wed, 4 Jan 2023 05:07:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsN1CzieWg7+1YKSd+lUSYJgvu/tV7P7fz+Cnr9IbWiVG7pJzNbUdDmfrOrl6mlMnX0NnXD X-Received: by 2002:a05:6a20:1715:b0:b0:25ba:1764 with SMTP id bn21-20020a056a20171500b000b025ba1764mr50108590pzb.26.1672837643148; Wed, 04 Jan 2023 05:07:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672837643; cv=none; d=google.com; s=arc-20160816; b=XmymfhbMCQXePk5mtT9QTHtMFSMiiYnLnOCCquqRGhn/oIeInP2oHALtFfMcVBaet9 c9f8iOYo9zeas4RTgOooPhYBmCOAgCi4bEXGD02NGX9jLEiJrkJ8OjY1aWNSTk9yHlTS O/fBrU33YNKFfGxs57bnz4gg7QSJZaOqME3aSGPrJTSediZWb/eVIQ2kL2pgEurdUBXv UNLixIXOp/DCQHcR/g7FO5+N0Ao7JL/v12EBXcMjy3bNqzoKAuTHHIBcxO01nTOGOhqp RopLDdjy5nO6qngO9EwT3fftyYcVty8irshCZ1KYO7xTwbTQwd187lUoEMHwi03Ii+IL 19Zg== 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=bvBVgxvYexJ5QPl2G0v6v97FphlOB+DeGfDZcV0EGZo=; b=MnNI2bUEzGqSYsZeMx9wNnheTNbGQn9evz4asvP6R9IkcOpdMfdvXwQIrnyPDSaTw+ 5L4VQeU7xG67Nj/tuX/FDLLZrtEz188YwPHbgeU6V1qX8EvusPmTWEnOGU9bTEqOOS0n dSwhVs1yQ6QHAk9Tj0g483owopwJcBa8jzfUhHM8Fh00eaYsXn94rB90E0bEf2ys2kME 3zY8qEoKvPPwTIqMkttCShMmZxMsM9sQgFFIst+FkOCw4mhy0W/WQ9J2YE3oFsoCnVaB Rd/kfUD43Ye3OmWYmrFIoMI+bmZSIPlsXgk88AmyUm0g68fOdv0C9BmgSkWDXoZ2I7GB dWCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="nGmT/9St"; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d31-20020a630e1f000000b00479018afb14si35266122pgl.49.2023.01.04.05.07.08; Wed, 04 Jan 2023 05:07:23 -0800 (PST) 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=@intel.com header.s=Intel header.b="nGmT/9St"; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239133AbjADNGN (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Wed, 4 Jan 2023 08:06:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239171AbjADNF4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Jan 2023 08:05:56 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301D8B4B2 for <linux-kernel@vger.kernel.org>; Wed, 4 Jan 2023 05:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672837549; x=1704373549; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I/VfrjLUBWPAYQJBDRBjLOcCQ9XfMy3A9aZ5hKuLdMA=; b=nGmT/9Stg4ngI8bn2Tsp0cacXZ8p3csGdePcaBj5JMkqhHFZ3yHOtaxk 4f7oPyCXQy2aetLlrzQwIyhdVmxwew8Bj3bLW7xJIlbCG+rdn3N/W4FL4 5YBpzEwXpWLuQGSRlmTwX902/vhNxabkQuKXlhaRafVM9CEFiaxkCfO2K idRV9Ugpo16avqxCyOVE4cYTO4dN2x3J+ZfKdfbckv4btVPPnzychvpj9 uWRijXx488puzQpt/MhJ4evkVXogbhU3iHJJXUsEKRsDa093273uQcNyO ffLYXXppzh37bC/NL8ZICA716A/VMs2MJvk+UPdeECVffo6ihFRJ9bKKx A==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="320639705" X-IronPort-AV: E=Sophos;i="5.96,299,1665471600"; d="scan'208";a="320639705" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 05:05:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="797529043" X-IronPort-AV: E=Sophos;i="5.96,299,1665471600"; d="scan'208";a="797529043" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga001.fm.intel.com with ESMTP; 04 Jan 2023 05:05:41 -0800 From: Lu Baolu <baolu.lu@linux.intel.com> To: Joerg Roedel <joro@8bytes.org>, Jason Gunthorpe <jgg@nvidia.com>, Christoph Hellwig <hch@infradead.org>, Kevin Tian <kevin.tian@intel.com>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Jean-Philippe Brucker <jean-philippe@linaro.org> Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Rob Clark <robdclark@gmail.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Yong Wu <yong.wu@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, Heiko Stuebner <heiko@sntech.de>, Matthew Rosato <mjrosato@linux.ibm.com>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com>, Chen-Yu Tsai <wens@csie.org>, Thierry Reding <thierry.reding@gmail.com>, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Lu Baolu <baolu.lu@linux.intel.com> Subject: [PATCH v4 04/19] iommu/exynos: Remove detach_dev callback Date: Wed, 4 Jan 2023 20:57:10 +0800 Message-Id: <20230104125725.271850-5-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104125725.271850-1-baolu.lu@linux.intel.com> References: <20230104125725.271850-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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?1754097404404776215?= X-GMAIL-MSGID: =?utf-8?q?1754097404404776215?= |
Series |
iommu: Retire detach_dev callback
|
|
Commit Message
Baolu Lu
Jan. 4, 2023, 12:57 p.m. UTC
The IOMMU driver supports default domain, so the detach_dev op will never be called. Remove it to avoid dead code. Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> --- drivers/iommu/exynos-iommu.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index b0cde2211987..29ec713e8a21 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -1404,7 +1404,6 @@ static const struct iommu_ops exynos_iommu_ops = { .of_xlate = exynos_iommu_of_xlate, .default_domain_ops = &(const struct iommu_domain_ops) { .attach_dev = exynos_iommu_attach_device, - .detach_dev = exynos_iommu_detach_device, .map = exynos_iommu_map, .unmap = exynos_iommu_unmap, .iova_to_phys = exynos_iommu_iova_to_phys,