diff mbox

[kernel] powerpc/powernv/iommu: Fix compile breakage in iommu_tce_xchg_rm

Message ID 20170328045107.45863-1-aik@ozlabs.ru (mailing list archive)
State Accepted
Headers show

Commit Message

Alexey Kardashevskiy March 28, 2017, 4:51 a.m. UTC
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---

Please squash it into:
[02/10] powerpc/powernv/iommu: Add real mode version of iommu_table_ops::exchange()
---
 arch/powerpc/kernel/iommu.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index 9bace5df05d5..685a4767b722 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -1004,6 +1004,7 @@  long iommu_tce_xchg(struct iommu_table *tbl, unsigned long entry,
 }
 EXPORT_SYMBOL_GPL(iommu_tce_xchg);
 
+#ifdef CONFIG_PPC_BOOK3S_64
 long iommu_tce_xchg_rm(struct iommu_table *tbl, unsigned long entry,
 		unsigned long *hpa, enum dma_data_direction *direction)
 {
@@ -1026,6 +1027,7 @@  long iommu_tce_xchg_rm(struct iommu_table *tbl, unsigned long entry,
 	return ret;
 }
 EXPORT_SYMBOL_GPL(iommu_tce_xchg_rm);
+#endif
 
 int iommu_take_ownership(struct iommu_table *tbl)
 {