powerpc: Fix unused function warning 'lmb_to_memblock'
authorAlastair D'Silva <alastair@d-silva.org>
Mon, 1 Aug 2016 06:32:51 +0000 (16:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Aug 2016 06:52:00 +0000 (16:52 +1000)
commit9dc512819e4b723856773f5a018865c20441072f
tree21807c2cb5b2ac3c33be26aff8d9aaea3268ea9c
parentbc14c49195e49b3231c01e4c44e3e5456c940b94
powerpc: Fix unused function warning 'lmb_to_memblock'

This patch fixes the following warning:
arch/powerpc/platforms/pseries/hotplug-memory.c:323:29: error: 'lmb_to_memblock' defined but not used [-Werror=unused-function]
static struct memory_block *lmb_to_memblock(struct of_drconf_cell *lmb)
                           ^~~~~~~~~~~~~~~

The only consumer of this function is 'dlpar_remove_lmb', which is
enabled with CONFIG_MEMORY_HOTREMOVE, so move it into the same
ifdef block.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c