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

Commit c412cb15 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: Fix compilation error without CONFIG_IOMMU_API



Add an "inline" so the compiler no longer gives a defined-but-not-used
warning.

Change-Id: I226242bf994e659d8018a885f20c3a3f80b9b8e5
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 4e2a8a0f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
#include <linux/iommu.h>
#include <linux/io-pgtable-fast.h>

struct dma_iommu_mapping;

struct dma_fast_smmu_mapping {
	struct device		*dev;
	struct iommu_domain	*domain;
+2 −2
Original line number Diff line number Diff line
@@ -650,8 +650,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;
}
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ static inline void msm_dma_unmap_sg(struct device *dev,
{
}

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