summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/sparsemem.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2019-03-13 13:25:28 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-04-20 15:02:26 +0300
commitf172acbfae1a78b1a3c775f78e8d0dcd15b9d768 (patch)
tree44069eb24e263f10024dec66d21b6dfb62260297 /arch/powerpc/include/asm/sparsemem.h
parentf89bd8ba834e392ff614a7be9ee68c5679675122 (diff)
downloadlinux-f172acbfae1a78b1a3c775f78e8d0dcd15b9d768.tar.xz
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>
Diffstat (limited to 'arch/powerpc/include/asm/sparsemem.h')
-rw-r--r--arch/powerpc/include/asm/sparsemem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/sparsemem.h b/arch/powerpc/include/asm/sparsemem.h
index 68da49320592..3192d454a733 100644
--- a/arch/powerpc/include/asm/sparsemem.h
+++ b/arch/powerpc/include/asm/sparsemem.h
@@ -17,9 +17,9 @@ extern int create_section_mapping(unsigned long start, unsigned long end, int ni
extern int remove_section_mapping(unsigned long start, unsigned long end);
#ifdef CONFIG_PPC_BOOK3S_64
-extern void resize_hpt_for_hotplug(unsigned long new_mem_size);
+extern int resize_hpt_for_hotplug(unsigned long new_mem_size);
#else
-static inline void resize_hpt_for_hotplug(unsigned long new_mem_size) { }
+static inline int resize_hpt_for_hotplug(unsigned long new_mem_size) { return 0; }
#endif
#ifdef CONFIG_NUMA