* vexpress_sysreg_probe section mismatch with 3.8-rc6
@ 2013-02-08 12:06 Will Deacon
2013-02-08 15:56 ` Pawel Moll
0 siblings, 1 reply; 2+ messages in thread
From: Will Deacon @ 2013-02-08 12:06 UTC (permalink / raw)
To: linux-arm-kernel
Hi Pawel,
I'm not sure if you're aware of this (I couldn't find anything on the list)
but I get the following section mismatch building for TC2 with mainline:
WARNING: drivers/mfd/built-in.o(.text+0xce4): Section mismatch in reference from the function vexpress_sysreg_probe() to the function .init.text:vexpress_sysreg_setup()
The function vexpress_sysreg_probe() references
the function __init vexpress_sysreg_setup().
This is often because vexpress_sysreg_probe lacks a __init
annotation or the annotation of vexpress_sysreg_setup is wrong.
WARNING: drivers/built-in.o(.text+0x3ee1c): Section mismatch in reference from the function vexpress_sysreg_probe() to the function .init.text:vexpress_sysreg_setup()
The function vexpress_sysreg_probe() references
the function __init vexpress_sysreg_setup().
This is often because vexpress_sysreg_probe lacks a __init
annotation or the annotation of vexpress_sysreg_setup is wrong.
WARNING: vmlinux.o(.text+0x2031b0): Section mismatch in reference from the function vexpress_sysreg_probe() to the function .init.text:vexpress_sysreg_setup()
The function vexpress_sysreg_probe() references
the function __init vexpress_sysreg_setup().
This is often because vexpress_sysreg_probe lacks a __init
annotation or the annotation of vexpress_sysreg_setup is wrong.
My guess is that you don't want the __init annotation on
vexpress_sysreg_setup; patch below.
Will
--->8
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c
index 77048b1..558c292 100644
--- a/drivers/mfd/vexpress-sysreg.c
+++ b/drivers/mfd/vexpress-sysreg.c
@@ -313,7 +313,7 @@ static void vexpress_sysreg_config_complete(unsigned long data)
}
-void __init vexpress_sysreg_setup(struct device_node *node)
+void vexpress_sysreg_setup(struct device_node *node)
{
if (WARN_ON(!vexpress_sysreg_base))
return;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* vexpress_sysreg_probe section mismatch with 3.8-rc6
2013-02-08 12:06 vexpress_sysreg_probe section mismatch with 3.8-rc6 Will Deacon
@ 2013-02-08 15:56 ` Pawel Moll
0 siblings, 0 replies; 2+ messages in thread
From: Pawel Moll @ 2013-02-08 15:56 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 2013-02-08 at 12:06 +0000, Will Deacon wrote:
> My guess is that you don't want the __init annotation on
> vexpress_sysreg_setup; patch below.
It's already fixed in arm-soc:
http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=commitdiff;h=e065d3d417274bafed162b3dffd2e03a5128623c
Cheers!
Pawel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-08 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-08 12:06 vexpress_sysreg_probe section mismatch with 3.8-rc6 Will Deacon
2013-02-08 15:56 ` Pawel Moll
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.