Message ID | 20221128064648.1934720-10-baolu.lu@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5476036wrr; Sun, 27 Nov 2022 22:59:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pao/dP69oJgNNUsBUbJqisd44ffVSAyW8Zl+P6lDz8wQO2qWG03QthC4Y3GvHRt0QwqFy X-Received: by 2002:a05:6402:285:b0:46a:878c:e8e9 with SMTP id l5-20020a056402028500b0046a878ce8e9mr18336200edv.306.1669618771707; Sun, 27 Nov 2022 22:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669618771; cv=none; d=google.com; s=arc-20160816; b=RsCJNUPekz170OStMWyxtXBBn6YnxaWnhzaOB09UuYOdiMlLaXbMZp817/2QYixTxa z9fdh4P9wwn2e3t+ZeH70VioFm+wZcQa0xMMVIVwlpiD+ru9eOLyUstPmUG7pM1tpQRN rLGLZvUOPlFyB2qGsiE0CUJHqagWGdPc9KWP7P4zr2v/JK4SpVpPytk3MisMyj8Sh8l9 M/vlImYAvPD0qxnQhVK0/H7EnLEEEBbYvTKPVQ7D1u+3NKRCyAzOBCkvJGCi9N9zhvLx NfJu5fZ0QX+L49tu6rwOPhQGuS5Qg4qEeEK9Hjkf1yQU6a/Y0xRL9SO957S2biRDJa1H LdPg== 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=u2f5BKHQCmZCeWskbiwFhBhvwILLC2eOqZ0a+4zpAkY=; b=o2zcyrXKOZY9YlRo6kYu+fdvMo6DO5NqbpBzZEOgEIE0zJCRvoe56hbu+pp+A3EKZQ EPLpWtJA/NyB+7JdgsfzFygadwQSKPS3bx01WFU8i6S9pCZ88gEjgGcpUuzTGx5HT/U5 Js7spiIf4gaDrdbZYmj3l1dbNZWxRV2OlXZoloO/7SXyS90K9cORpprzoMauKJrJ25WA QoI/DVBwymQ6Sne6crtdX8jsBSN0hpbBgeSK9xPbGW23l1isiABVN5FadRNd1xyWSIKt sJ/dZxAov1TGidsHsNn+q6r8V4aCm9naIUmb3NKjnBDbktJaEnaQrjc5pNGgyOcL9jre Q2NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SkHE25Dz; 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 hp42-20020a1709073e2a00b0078db371355esi9349872ejc.987.2022.11.27.22.59.08; Sun, 27 Nov 2022 22:59:31 -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=SkHE25Dz; 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 S230000AbiK1Gzp (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 01:55:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbiK1GzP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 01:55:15 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2258815A36 for <linux-kernel@vger.kernel.org>; Sun, 27 Nov 2022 22:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669618509; x=1701154509; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zq7NjJNxRgriS5ThoBBkHtRQsns0/Mg1Qwl0eHqflWY=; b=SkHE25DzDpTKBuf7BOCURMmoTYtWzQubSNUSu1shmIuxYSu5i0YVoy0E vE7ovTkxo3Y3UmywfMLXKwDx8IgMlrMr9/G0GA7qZncTF6k9COsiOUqq7 NMMx8rk4nr5hcq11HDJVLv3U7YVbZG7ywwFgpjBwNWYiM9DbU9wNFTiDw Guu3gbxiRCvHptajss4V/PoMQGPB+EYYMth1kXhKov/FbGjIUnv2guhEd r+7fHN49FDsQ9Xoig8qlxwy5w/Mpu/M98QXHjOWe/8knwyyhHOm4/8Smx wurJe0qbOMmwTyv+65Z/ppDduA1B8gtZBQVa9sr0N6a5jAYeXlweJJdN2 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="314796476" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="314796476" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 22:55:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="674120912" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="674120912" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga008.jf.intel.com with ESMTP; 27 Nov 2022 22:55:01 -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 v3 09/20] iommu/sun50i: Remove detach_dev callback Date: Mon, 28 Nov 2022 14:46:37 +0800 Message-Id: <20221128064648.1934720-10-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128064648.1934720-1-baolu.lu@linux.intel.com> References: <20221128064648.1934720-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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?1750722173431483115?= X-GMAIL-MSGID: =?utf-8?q?1750722173431483115?= |
Series |
iommu: Retire detach_dev callback
|
|
Commit Message
Baolu Lu
Nov. 28, 2022, 6:46 a.m. UTC
The IOMMU driver supports default domain, so the detach_dev op will never
be called. Remove it to avoid dead code.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
---
drivers/iommu/sun50i-iommu.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Mon, Nov 28, 2022 at 02:46:37PM +0800, Lu Baolu wrote: > The IOMMU driver supports default domain, so the detach_dev op will never > be called. Remove it to avoid dead code. > > Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> > --- > drivers/iommu/sun50i-iommu.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Jason
diff --git a/drivers/iommu/sun50i-iommu.c b/drivers/iommu/sun50i-iommu.c index 5cb2d44dfb92..37b074be87a5 100644 --- a/drivers/iommu/sun50i-iommu.c +++ b/drivers/iommu/sun50i-iommu.c @@ -835,7 +835,6 @@ static const struct iommu_ops sun50i_iommu_ops = { .probe_device = sun50i_iommu_probe_device, .default_domain_ops = &(const struct iommu_domain_ops) { .attach_dev = sun50i_iommu_attach_device, - .detach_dev = sun50i_iommu_detach_device, .flush_iotlb_all = sun50i_iommu_flush_iotlb_all, .iotlb_sync_map = sun50i_iommu_iotlb_sync_map, .iotlb_sync = sun50i_iommu_iotlb_sync,