]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4069ccb4d5b11d6ce9af6a10fb1c45e2f455b976
tree21807c2cb5b2ac3c33be26aff8d9aaea3268ea9c
parentd29cd3364de80157fd7ffafa82797851784a1a9a
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