Re: powerpc/mm: Fix section mismatch warning

2019-04-21 Thread Michael Ellerman
On Sat, 2019-03-30 at 05:43:45 UTC, "Aneesh Kumar K.V" wrote: > 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() > WARNI

[PATCH] powerpc/mm: Fix section mismatch warning

2019-03-29 Thread Aneesh Kumar K.V
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 fun

Re: powerpc/mm: Fix section mismatch warning in stop_machine_change_mapping()

2018-03-28 Thread Michael Ellerman
On Fri, 2018-03-09 at 20:45:58 UTC, Mauricio Faria de Oliveira wrote: > Fix the warning messages for stop_machine_change_mapping(), and a number > of other affected functions in its call chain. > > All modified functions are under CONFIG_MEMORY_HOTPLUG, so __meminit > is okay (keeps them / does no

Re: [PATCH] powerpc/mm: Fix section mismatch warning in stop_machine_change_mapping()

2018-03-12 Thread Mauricio Faria de Oliveira
Balbir, On 03/11/2018 03:23 AM, Balbir Singh wrote: Looks reasonable, I'd recommend trying to compile with MEMORY_HOTPLUG and MEMORY_HOTREMOVE enabled/disabled as well Thanks for reviewing. I should have mentioned it :) I did that (disable CONFIG_MEMORY_HOTPLUG) and all the related functions

Re: [PATCH] powerpc/mm: Fix section mismatch warning in stop_machine_change_mapping()

2018-03-10 Thread Balbir Singh
On Sat, Mar 10, 2018 at 7:45 AM, Mauricio Faria de Oliveira wrote: > Fix the warning messages for stop_machine_change_mapping(), and a number > of other affected functions in its call chain. > > All modified functions are under CONFIG_MEMORY_HOTPLUG, so __meminit > is okay (keeps them / does not d

[PATCH] powerpc/mm: Fix section mismatch warning in stop_machine_change_mapping()

2018-03-09 Thread Mauricio Faria de Oliveira
Fix the warning messages for stop_machine_change_mapping(), and a number of other affected functions in its call chain. All modified functions are under CONFIG_MEMORY_HOTPLUG, so __meminit is okay (keeps them / does not discard them). Boot-tested on powernv/power9/radix-mmu and pseries/power8/has

Re: powerpc/mm: Fix section mismatch warning in early_check_vec5()

2017-08-11 Thread Michael Ellerman
On Tue, 2017-08-08 at 11:44:08 UTC, Michael Ellerman wrote: > early_check_vec5() is called from and calls __init routines, so should > also be __init. > > Signed-off-by: Michael Ellerman Applied to powerpc next. https://git.kernel.org/powerpc/c/7559952e1f6f95091b00352c5ba863 cheers

[PATCH] powerpc/mm: Fix section mismatch warning in early_check_vec5()

2017-08-08 Thread Michael Ellerman
early_check_vec5() is called from and calls __init routines, so should also be __init. Signed-off-by: Michael Ellerman --- arch/powerpc/mm/init_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index b1c83a6bfd54..588a5