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

Commit 191e050e authored by Vijayanand Jitta's avatar Vijayanand Jitta
Browse files

iommu: Fix compilation errors when !CONFIG_QCOM_LAZY_MAPPING



Definition of msm_dma_unmap_sg_attrs is not present when
CONFIG_QCOM_LAZY_MAPPING is not selected this would result 
in compilation errors, fix this by adding the definition.

Change-Id: Ie4e92463a1641a002e99c72b325e224b79066936
Signed-off-by: default avatarVijayanand Jitta <vjitta@codeaurora.org>
parent 5457aada
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -105,6 +105,12 @@ static inline void msm_dma_unmap_sg(struct device *dev,
{
}

void msm_dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sgl,
			    int nents, enum dma_data_direction dir,
			    struct dma_buf *dma_buf, unsigned long attrs)
{
}

static inline int msm_dma_unmap_all_for_dev(struct device *dev)
{
	return 0;