iommu: Remove the ->map_sg indirection
authorChristoph Hellwig <hch@lst.de>
Mon, 30 Jul 2018 07:36:26 +0000 (09:36 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 8 Aug 2018 09:06:20 +0000 (11:06 +0200)
commitd88e61faad526a5850e9330c846641b91cf971e7
tree936bfd3d693f904d1a3de9f9e51034ba0dd6329c
parent58d1131777a4b7c228267b809bd88f7be66edcfb
iommu: Remove the ->map_sg indirection

All iommu drivers use the default_iommu_map_sg implementation, and there
is no good reason to ever override it.  Just expose it as iommu_map_sg
directly and remove the indirection, specially in our post-spectre world
where indirect calls are horribly expensive.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
16 files changed:
drivers/iommu/amd_iommu.c
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c
drivers/iommu/exynos-iommu.c
drivers/iommu/intel-iommu.c
drivers/iommu/iommu.c
drivers/iommu/ipmmu-vmsa.c
drivers/iommu/msm_iommu.c
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu_v1.c
drivers/iommu/omap-iommu.c
drivers/iommu/qcom_iommu.c
drivers/iommu/rockchip-iommu.c
drivers/iommu/tegra-gart.c
drivers/iommu/tegra-smmu.c
include/linux/iommu.h