Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93becf52 authored by Abhimanyu Kapur's avatar Abhimanyu Kapur
Browse files

iommu: convert iommu_{un)map_range and dma_supported stub to static inline



Convert iommu_map_range and iommu_unmap_range to be static inline
stubs. Also fix the dma_supported APIs in the same manor.

Change-Id: I7c5c71efa0b4614f9c765b7fe2686555d0d3dfa1
Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent 4c47f344
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -344,14 +344,15 @@ static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova,
	return -ENODEV;
}

int iommu_map_range(struct iommu_domain *domain, unsigned long iova,
static inline int iommu_map_range(struct iommu_domain *domain,
				unsigned long iova,
				struct scatterlist *sg, size_t len, int prot)
{
	return -ENODEV;
}

int iommu_unmap_range(struct iommu_domain *domain, unsigned long iova,
		      size_t len)
static inline int iommu_unmap_range(struct iommu_domain *domain,
				unsigned long iova, size_t len)
{
	return -ENODEV;
}
@@ -499,8 +500,8 @@ static inline void iommu_device_unlink(struct device *dev, struct device *link)
{
}

static int iommu_dma_supported(struct iommu_domain *domain, struct device *dev,
			       u64 mask)
static inline int iommu_dma_supported(struct iommu_domain *domain,
		struct device *dev, u64 mask)
{
	return -EINVAL;
}