powerpc/mm: move warning from resize_hpt_for_hotplug()
authorLaurent Vivier <lvivier@redhat.com>
Wed, 13 Mar 2019 10:25:28 +0000 (11:25 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:02:26 +0000 (22:02 +1000)
commitf172acbfae1a78b1a3c775f78e8d0dcd15b9d768
tree44069eb24e263f10024dec66d21b6dfb62260297
parentf89bd8ba834e392ff614a7be9ee68c5679675122
powerpc/mm: move warning from resize_hpt_for_hotplug()

resize_hpt_for_hotplug() reports a warning when it cannot
resize the hash page table ("Unable to resize hash page
table to target order") but in some cases it's not a problem
and can make user thinks something has not worked properly.

This patch moves the warning to arch_remove_memory() to
only report the problem when it is needed.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/sparsemem.h
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/mem.c
arch/powerpc/platforms/pseries/lpar.c