powerpc/mm: Fix section mismatch warning
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 28 Jan 2020 09:50:08 +0000 (10:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:25 +0000 (16:43 +0100)
commit58ddf0b0eff2a6cb536082fc6b046f5eb51c240c
tree86eea46d4ac7ab0acb0224101577a0aab28a89b0
parentefaa8fb877a081d82c4dcd14e904bdb97f074eeb
powerpc/mm: Fix section mismatch warning

commit 26ad26718dfaa7cf49d106d212ebf2370076c253 upstream.

This patch fix the below section mismatch warnings.

WARNING: vmlinux.o(.text+0x2d1f44): Section mismatch in reference from the function devm_memremap_pages_release() to the function .meminit.text:arch_remove_memory()
WARNING: vmlinux.o(.text+0x2d265c): Section mismatch in reference from the function devm_memremap_pages() to the function .meminit.text:arch_add_memory()

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/mem.c