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

Nicholas Piggin npiggin at gmail.com
Wed Apr 29 15:13:12 AEST 2020


Excerpts from Christian Zigotzky's message of April 29, 2020 2:53 pm:
> 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
--

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();



More information about the Linuxppc-dev mailing list