]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Build fix for non SPARSEMEM_VMEMAP config
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 28 Jun 2017 06:09:28 +0000 (11:39 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Jul 2017 12:39:08 +0000 (22:39 +1000)
commit0377e193a87e6aac4a35f7507df1832ba495b6cb
treeb7a75fdc2ab3adb063b50f7d33bfe440c2b8c9dd
parent11fbe05f9ccd29843a8a6d6cb4c433ec92ba9aa4
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: affdea39f9d8 ("powerpc: Prepare to support kernel handling of IOMMU map/unmap")
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Also fix up the #endif comment]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/init_64.c