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

Commit 9571bb2e authored by Swathi Sridhar's avatar Swathi Sridhar
Browse files

ion: Fix ion compilation errors on Kona



Include the stub version of the function
msm_dma_unmap_sg_attrs() for successful ION
compilation when LAZY MAPPING is not defined.
Perform the clean up of msm_dma_unmap_sg()
since it is not called/used anywhere.

Change-Id: Ib56e4ae66aba3b3b14229771c6f5ea85007f1829
Signed-off-by: default avatarSwathi Sridhar <swatsrid@codeaurora.org>
parent 2b0715dd
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -76,6 +76,13 @@ static inline int msm_dma_map_sg_attrs(struct device *dev,
	return -EINVAL;
}

static inline 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_map_sg_lazy(struct device *dev,
			       struct scatterlist *sg, int nents,
			       enum dma_data_direction dir,
@@ -91,13 +98,6 @@ static inline int msm_dma_map_sg(struct device *dev, struct scatterlist *sg,
	return -EINVAL;
}

static inline void msm_dma_unmap_sg(struct device *dev,
					struct scatterlist *sgl, int nents,
					enum dma_data_direction dir,
					struct dma_buf *dma_buf)
{
}

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