Merge "iommu: Fix compilation error without CONFIG_IOMMU_API"
This commit is contained in:
commit
c484f1d883
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