summaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 41b8c5757859..19938ee6eb31 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -465,23 +465,23 @@ static inline int iommu_map(struct iommu_domain *domain, unsigned long iova,
465 return -ENODEV; 465 return -ENODEV;
466} 466}
467 467
468static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, 468static inline size_t iommu_unmap(struct iommu_domain *domain,
469 size_t size) 469 unsigned long iova, size_t size)
470{ 470{
471 return -ENODEV; 471 return 0;
472} 472}
473 473
474static inline int iommu_unmap_fast(struct iommu_domain *domain, unsigned long iova, 474static inline size_t iommu_unmap_fast(struct iommu_domain *domain,
475 int gfp_order) 475 unsigned long iova, int gfp_order)
476{ 476{
477 return -ENODEV; 477 return 0;
478} 478}
479 479
480static inline size_t iommu_map_sg(struct iommu_domain *domain, 480static inline size_t iommu_map_sg(struct iommu_domain *domain,
481 unsigned long iova, struct scatterlist *sg, 481 unsigned long iova, struct scatterlist *sg,
482 unsigned int nents, int prot) 482 unsigned int nents, int prot)
483{ 483{
484 return -ENODEV; 484 return 0;
485} 485}
486 486
487static inline void iommu_flush_tlb_all(struct iommu_domain *domain) 487static inline void iommu_flush_tlb_all(struct iommu_domain *domain)