]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
iommu: Correct iommu_map / iommu_unmap prototypes
authorDmitry Osipenko <digetx@gmail.com>
Wed, 5 Jul 2017 17:27:53 +0000 (20:27 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 26 Jul 2017 09:27:16 +0000 (11:27 +0200)
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>
include/linux/iommu.h

index 2cb54adc4a334aa3f3a1732c35eaf9749d64b9e8..f1ce8e517d8dcd84296ae03eab30017dd769cd49 100644 (file)
@@ -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;
 }