diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2018-02-05 23:29:19 +0530 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-02-13 19:31:32 +0100 |
commit | 193e67c00e33e188d68815fb78806317c77f156c (patch) | |
tree | 301e6e910e0dfce7ef35aae37ed36638d70dcf47 /drivers/iommu/io-pgtable.h | |
parent | c5611a8751e67595e4e7d3feaff3c900b92094b9 (diff) | |
download | lwn-193e67c00e33e188d68815fb78806317c77f156c.tar.gz lwn-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.h | 4 |
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); }; |