Thread (2 messages) flat view 2 messages, 2 authors, 2016-08-09

Re: powerpc: Fix unused function warning 'lmb_to_memblock'

From: Michael Ellerman <hidden>
Date: 2016-08-09 11:26:42

On Mon, 2016-01-08 at 06:32:51 UTC, Alastair D'Silva wrote:
From: Alastair D'Silva <redacted>

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.
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/9dc512819e4b723856773f5a01

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help