Re: Section mismatch in reference from the function .early_init_mmu() to the function .init.text:.radix__early_init_mmu() after PowerPC updates 5.7-1
From: Christian Zigotzky <hidden>
Date: 2020-04-29 06:47:14
From: Christian Zigotzky <hidden>
Date: 2020-04-29 06:47:14
On 29 April 2020 at 07:13 am, Nicholas Piggin wrote:
Excerpts from Christian Zigotzky's message of April 29, 2020 2:53 pm:quoted
Hi All, The issue still exists in the RC3. (kernel config attached) Please help me to fix this issue.Huh, looks like maybe early_init_mmu() got uninlined because the compiler decided it was unlikely. Does this fix it? Thanks, Nick --
Hi Nick, Many thanks for your patch! It solved the issue. Have a nice day! Cheers, Christian
diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h b/arch/powerpc/include/asm/book3s/64/mmu.h index bb3deb76c951..3ffe5f967483 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu.h +++ b/arch/powerpc/include/asm/book3s/64/mmu.h@@ -208,7 +208,7 @@ void hash__early_init_devtree(void); void radix__early_init_devtree(void); extern void hash__early_init_mmu(void); extern void radix__early_init_mmu(void); -static inline void early_init_mmu(void) +static inline void __init early_init_mmu(void) { if (radix_enabled()) return radix__early_init_mmu();