* compile warning
@ 2007-10-26 13:25 Sergej Stepanov
2007-10-26 15:58 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Sergej Stepanov @ 2007-10-26 13:25 UTC (permalink / raw)
To: linux-ppc
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.
--
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: Sergej.Stepanov@ids.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compile warning
2007-10-26 13:25 compile warning Sergej Stepanov
@ 2007-10-26 15:58 ` Kumar Gala
2007-10-30 7:43 ` Sergej Stepanov
0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2007-10-26 15:58 UTC (permalink / raw)
To: Sergej Stepanov; +Cc: linux-ppc
On Oct 26, 2007, at 8:25 AM, Sergej Stepanov wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compile warning
2007-10-26 15:58 ` Kumar Gala
@ 2007-10-30 7:43 ` Sergej Stepanov
2007-10-30 9:05 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Sergej Stepanov @ 2007-10-30 7:43 UTC (permalink / raw)
To: linux-ppc, Kumar Gala
thanks for your reply.
> >
> > 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 :
diff --git a/arch/powerpc/sysdev/cpm2_common.c b/arch/powerpc/sysdev/cpm2_common.c
index f8a621e..f507ada 100644
--- a/arch/powerpc/sysdev/cpm2_common.c
+++ b/arch/powerpc/sysdev/cpm2_common.c
@@ -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.
--
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: Sergej.Stepanov@ids.de
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: compile warning
2007-10-30 7:43 ` Sergej Stepanov
@ 2007-10-30 9:05 ` Arnd Bergmann
0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2007-10-30 9:05 UTC (permalink / raw)
To: linuxppc-dev
On Tuesday 30 October 2007, Sergej Stepanov wrote:
> -void
> +void __init
> cpm2_reset(void)
> {
> #ifdef CONFIG_PPC_85xx
>
> ------------------
> I am not sure it is ok.
Yes, this looks good.
>
> 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 <><
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-30 9:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 13:25 compile warning Sergej Stepanov
2007-10-26 15:58 ` Kumar Gala
2007-10-30 7:43 ` Sergej Stepanov
2007-10-30 9:05 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).