diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2017-07-05 20:27:53 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-07-26 12:27:16 +0300 |
commit | ebae3e830a991116526646f09dd67f68f332b330 (patch) | |
tree | eb7a9fb65a495ec1f6ad41e58615c99bc26c7692 /include/linux/iommu.h | |
parent | d87beb749281404b4b4919930b1cc6352e3746f2 (diff) | |
download | linux-ebae3e830a991116526646f09dd67f68f332b330.tar.xz |
iommu: Correct iommu_map / iommu_unmap prototypes
Commit 7d3002cc8c16 ("iommu/core: split mapping to page sizes as supported
by the hardware") replaced 'int gfp_order' with a 'size_t size' of
iommu_map / iommu_unmap function arguments, but missed the function
prototypes for the disabled CONFIG_IOMMU_API case, let's correct them
for consistency.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 2cb54adc4a33..f1ce8e517d8d 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -425,13 +425,13 @@ static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev) } static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, - phys_addr_t paddr, int gfp_order, int prot) + phys_addr_t paddr, size_t size, int prot) { return -ENODEV; } static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, - int gfp_order) + size_t size) { return -ENODEV; } |