diff options
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 14 |
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 | ||
468 | static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, | 468 | static 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 | ||
474 | static inline int iommu_unmap_fast(struct iommu_domain *domain, unsigned long iova, | 474 | static 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 | ||
480 | static inline size_t iommu_map_sg(struct iommu_domain *domain, | 480 | static 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 | ||
487 | static inline void iommu_flush_tlb_all(struct iommu_domain *domain) | 487 | static inline void iommu_flush_tlb_all(struct iommu_domain *domain) |