iommu: Remove apply_resv_region
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 16 Feb 2022 02:52:45 +0000 (10:52 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Feb 2022 12:25:48 +0000 (13:25 +0100)
commit71fe30698dc3be6fd277c49c0c7b220c7ae92ffd
tree620388991b0c8764cd68226f3dc32d21dff87a22
parent8652d875939b6a1fe6d5c93cf4fb91df61cda5a7
iommu: Remove apply_resv_region

The apply_resv_region callback in iommu_ops was introduced to reserve an
IOVA range in the given DMA domain when the IOMMU driver manages the IOVA
by itself. As all drivers converted to use dma-iommu in the core, there's
no driver using this anymore. Remove it to avoid dead code.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220216025249.3459465-6-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h