Skip to content

Commit 7e7dc66

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm: Build fix for non SPARSEMEM_VMEMAP config
We can use pfn_to_page() in realmode for other configs. Hence remove the CONFIG_FLATMEM ifdef. Fixes: 8e0861f ("powerpc: Prepare to support kernel handling of IOMMU map/unmap") Cc: Alexey Kardashevskiy <[email protected]> Signed-off-by: Aneesh Kumar K.V <[email protected]> [mpe: Also fix up the #endif comment] Signed-off-by: Michael Ellerman <[email protected]>
1 parent 5588b29 commit 7e7dc66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/mm/init_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ struct page *realmode_pfn_to_page(unsigned long pfn)
356356
}
357357
EXPORT_SYMBOL_GPL(realmode_pfn_to_page);
358358

359-
#elif defined(CONFIG_FLATMEM)
359+
#else
360360

361361
struct page *realmode_pfn_to_page(unsigned long pfn)
362362
{
@@ -365,7 +365,7 @@ struct page *realmode_pfn_to_page(unsigned long pfn)
365365
}
366366
EXPORT_SYMBOL_GPL(realmode_pfn_to_page);
367367

368-
#endif /* CONFIG_SPARSEMEM_VMEMMAP/CONFIG_FLATMEM */
368+
#endif /* CONFIG_SPARSEMEM_VMEMMAP */
369369

370370
#ifdef CONFIG_PPC_STD_MMU_64
371371
static bool disable_radix;

0 commit comments

Comments
 (0)