powerpc/mm: define an empty mm_iommu_init()

To avoid ifdefs, define a empty static inline mm_iommu_init() function
when CONFIG_SPAPR_TCE_IOMMU is not selected.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
此提交包含在:
Christophe Leroy
2019-03-22 08:08:40 +00:00
提交者 Michael Ellerman
父節點 9c1d38b34e
當前提交 93f2cd8137
共有 2 個檔案被更改,包括 1 行新增2 行删除

查看文件

@@ -931,9 +931,7 @@ void __init setup_arch(char **cmdline_p)
init_mm.end_data = (unsigned long) _edata;
init_mm.brk = klimit;
#ifdef CONFIG_SPAPR_TCE_IOMMU
mm_iommu_init(&init_mm);
#endif
irqstack_early_init();
exc_lvl_early_init();
emergency_stack_init();