summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/io-pgtable.h
diff options
context:
space:
mode:
authorVivek Gautam2018-02-05 18:59:19 +0100
committerJoerg Roedel2018-02-13 19:31:32 +0100
commit193e67c00e33e188d68815fb78806317c77f156c (patch)
tree301e6e910e0dfce7ef35aae37ed36638d70dcf47 /drivers/iommu/io-pgtable.h
parentiommu: Do not return error code for APIs with size_t return type (diff)
downloadkernel-qcow2-linux-193e67c00e33e188d68815fb78806317c77f156c.tar.gz
kernel-qcow2-linux-193e67c00e33e188d68815fb78806317c77f156c.tar.xz
kernel-qcow2-linux-193e67c00e33e188d68815fb78806317c77f156c.zip
iommu/io-pgtable: Use size_t return type for all foo_unmap
Unmap returns a size_t all throughout the IOMMU framework. Make io-pgtable match this convention. Moreover, there isn't a need to have a signed int return type as we return 0 in case of failures. Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org> Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/io-pgtable.h')
-rw-r--r--drivers/iommu/io-pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/io-pgtable.h b/drivers/iommu/io-pgtable.h
index cd2e1eafffe6..2df79093cad9 100644
--- a/drivers/iommu/io-pgtable.h
+++ b/drivers/iommu/io-pgtable.h
@@ -119,8 +119,8 @@ struct io_pgtable_cfg {
struct io_pgtable_ops {
int (*map)(struct io_pgtable_ops *ops, unsigned long iova,
phys_addr_t paddr, size_t size, int prot);
- int (*unmap)(struct io_pgtable_ops *ops, unsigned long iova,
- size_t size);
+ size_t (*unmap)(struct io_pgtable_ops *ops, unsigned long iova,
+ size_t size);
phys_addr_t (*iova_to_phys)(struct io_pgtable_ops *ops,
unsigned long iova);
};