Skip to content

Commit c2bea7a

Browse files
Zenghui Yuwilldeacon
authored andcommitted
ACPI/IORT: Remove the unused inline functions
Since commit 8212688 ("ACPI/IORT: Fix build error when IOMMU_SUPPORT is disabled"), iort_fwspec_iommu_ops() and iort_add_device_replay() are not needed anymore when CONFIG_IOMMU_API is not selected. Let's remove them. Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/20200818063625.980-3-yuzenghui@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 1ab64cf commit c2bea7a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/acpi/arm64/iort.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,10 +1086,6 @@ const struct iommu_ops *iort_iommu_configure_id(struct device *dev,
10861086
}
10871087

10881088
#else
1089-
static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev)
1090-
{ return NULL; }
1091-
static inline int iort_add_device_replay(struct device *dev)
1092-
{ return 0; }
10931089
int iort_iommu_msi_get_resv_regions(struct device *dev, struct list_head *head)
10941090
{ return 0; }
10951091
const struct iommu_ops *iort_iommu_configure_id(struct device *dev,

0 commit comments

Comments
 (0)