Skip to contentSkip to conversation

compile warning

DISCUSSION Sergej Stepanov 3 participants 4 messages Oct 26, 2007 – Oct 30, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

Hello!

I have at compile time the following warning:

WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference to .init.text:cpm_muram_init (between 'cpm2_reset' and 'cpm2_smc_clk_setup')

Could it make some problem?

Thanks.

Signature · 8 lines
Sergej I. Stepanov
IDS GmbH
Nobelstr. 18, Zim. 2.1.05
D-76275 Ettlingen
T +49 (0) 72 43/2 18-615
F +49 (0) 72 43/2 18-400
http://www.ids.de
Email: [email protected]
#1 lore raw
Quoted 9 lines · Sergej Stepanov

Hello!

I have at compile time the following warning:

WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference to .init.text:cpm_muram_init (between 'cpm2_reset' and 'cpm2_smc_clk_setup')

Could it make some problem?

It should be fixed, but its highly unlikely you'll see a problem unless you start trying to build core parts of the CPM code as modules.

- k

#2 lore raw

thanks for your reply.

Quoted 9 lines
Quoted 5 lines

WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference to .init.text:cpm_muram_init (between 'cpm2_reset' and 'cpm2_smc_clk_setup')

It should be fixed, but its highly unlikely you'll see a problem unless you start trying to build core parts of the CPM code as modules.

- k

we have no modules for CPM.
Fix it i could with :

arch/powerpc/sysdev/cpm2_common.c +1 -1
index f8a621e..f507ada 100644
@@ -61,7 +61,7 @@ cpm2_map_t __iomem *cpm2_immr;
 					   of space for CPM as it is larger
 					   than on PQ2 */
 
-void
+void __init
 cpm2_reset(void)
 {
 #ifdef CONFIG_PPC_85xx

------------------
I am not sure it is ok.

But i have other 2 warnings (no modules).

WARNING: vmlinux.o(.exit.text+0x5da): Section mismatch: reference to .init.data:of_platform_serial_driver (between 'of_platform_serial_exit' and 'phy_exit')
WARNING: vmlinux.o(.exit.text+0x5e2): Section mismatch: reference to .init.data:of_platform_serial_driver (between 'of_platform_serial_exit' and 'phy_exit')

Regards.

Signature · 8 lines
Sergej Stepanov
IDS GmbH
Nobelstr. 18, Zim. 2.1.05
D-76275 Ettlingen
T +49 (0) 72 43/2 18-615
F +49 (0) 72 43/2 18-400
http://www.ids.de
Email: [email protected]
#3 lore raw
Quoted 8 lines · Sergej Stepanov
arch/powerpc/sysdev/cpm2_common.c +1 -2
-void
+void __init
 cpm2_reset(void)
 {
 #ifdef CONFIG_PPC_85xx
 
------------------

I am not sure it is ok.

Yes, this looks good.

Quoted 9 lines

But i have other 2 warnings (no modules).

WARNING: vmlinux.o(.exit.text+0x5da): Section mismatch: reference to .init.data:of_platform_serial_driver (between 'of_platform_serial_exit' and 'phy_exit')
WARNING: vmlinux.o(.exit.text+0x5e2): Section mismatch: reference to .init.data:of_platform_serial_driver (between 'of_platform_serial_exit' and 'phy_exit')

This seems to be my fault. I'll try to come up with the right fix.

	Arnd <><