iommu: Introduce iommu_iotlb_gather_add_page()
authorWill Deacon <will@kernel.org>
Tue, 2 Jul 2019 15:43:57 +0000 (16:43 +0100)
committerWill Deacon <will@kernel.org>
Wed, 24 Jul 2019 12:35:27 +0000 (13:35 +0100)
commit4fcf8544fc677fc8af135f1d86b3ba69c4ad429d
tree172f536ba5c9db2f4b79e679f49499a4efba0b8a
parenta7d20dc19d9ea7012227be5144353012ffa3ddc4
iommu: Introduce iommu_iotlb_gather_add_page()

Introduce a helper function for drivers to use when updating an
iommu_iotlb_gather structure in response to an ->unmap() call, rather
than having to open-code the logic in every page-table implementation.

Signed-off-by: Will Deacon <will@kernel.org>
include/linux/iommu.h