]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix build with CONFIG_MEMORY_HOTPLUG on some configs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:07:54 +0000 (15:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Jul 2016 06:33:27 +0000 (16:33 +1000)
commit56d08b4f915651e06e6ebacdab190178195c281c
tree94cd1b7745f31e9ec193c9fdab600f60f7df0177
parent85c21f0a31d9a5660d93a13e59ee2d1a0c9a8844
powerpc: Fix build with CONFIG_MEMORY_HOTPLUG on some configs

For memory hotplug to work, the MMU code needs to provide the functions
create_section_mapping() and remove_section_mapping() to respectively
map and unmap portions of the linear mapping.

At the moment only hash64 provides these, so we provide weak stubs that
just error out. This fixes the build with configurations such as 64-bit
BookE with CONFIG_MEMORY_HOTPLUG enabled.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mem.c