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: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
parent
4e2a8a0fa1
commit
c412cb15e0
3 changed files with 5 additions and 3 deletions
|
@ -16,6 +16,8 @@
|
||||||
#include <linux/iommu.h>
|
#include <linux/iommu.h>
|
||||||
#include <linux/io-pgtable-fast.h>
|
#include <linux/io-pgtable-fast.h>
|
||||||
|
|
||||||
|
struct dma_iommu_mapping;
|
||||||
|
|
||||||
struct dma_fast_smmu_mapping {
|
struct dma_fast_smmu_mapping {
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
struct iommu_domain *domain;
|
struct iommu_domain *domain;
|
||||||
|
|
|
@ -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,
|
static inline int iommu_dma_supported(struct iommu_domain *domain,
|
||||||
u64 mask)
|
struct device *dev, u64 mask)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue