Skip to contentSkip to conversation

several section mismatches

DISCUSSION Tomáš 'Sleep_Walker' Čech 3 participants 3 messages Aug 2, 2010 – Aug 18, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,

It seems that we have some problems with g_ether and pxa cpufreq. This is problematic output of `make CONFIG_DEBUG_SECTION_MISMATCH=y':

WARNING: vmlinux.o(.data+0x2e18): Section mismatch in reference from the variable pxa_cpufreq_driver to the function .init.text:pxa_cpufreq_init() The variable pxa_cpufreq_driver references
the function __init pxa_cpufreq_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

WARNING: vmlinux.o(.data+0x1e514): Section mismatch in reference from the variable eth_config_driver to the function .init.text:eth_do_config() The variable eth_config_driver references
the function __init eth_do_config()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

WARNING: vmlinux.o(.data+0x1e6f0): Section mismatch in reference from the variable eth_driver to the function .init.text:eth_bind() The variable eth_driver references
the function __init eth_bind()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

Best regards,

Tomas Cech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100802/6c19f562/attachment.html>

#1 lore raw
Quoted 2 lines · Tom?? 'Sleep_Walker' ?ech

It seems that we have some problems with g_ether and pxa cpufreq. This is problematic output of `make CONFIG_DEBUG_SECTION_MISMATCH=y':

Problems with g_ether should be fixed in -next.

Signature · 4 lines
Best regards,                                        _     _
| Humble Liege of Serenely Enlightened Majesty of  o' \,=./ `o
| Computer Science,  Micha? "mina86" Nazarewicz       (o o)
+----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--
#2 lore raw

A simple fix to cpufreq for pxa would be as below:

(quoted diff) +0 -0

b/arch/arm/mach-pxa/cpufreq-pxa2xx.c
index 268a9bc..50d5939 100644

arch/arm/mach-pxa/cpufreq-pxa2xx.c +1 -1
@@ -398,7 +398,7 @@ static int pxa_set_target(struct cpufreq_policy *policy,
 	return 0;
 }
 
-static __init int pxa_cpufreq_init(struct cpufreq_policy *policy)
+static int pxa_cpufreq_init(struct cpufreq_policy *policy)
 {
 	int i;
 	unsigned int freq;
(quoted diff) +0 -0

b/arch/arm/mach-pxa/cpufreq-pxa3xx.c
index 27fa329..0a0d0fe 100644

arch/arm/mach-pxa/cpufreq-pxa3xx.c +1 -1
@@ -204,7 +204,7 @@ static int pxa3xx_cpufreq_set(struct cpufreq_policy *policy,
 	return 0;
 }
 
-static __init int pxa3xx_cpufreq_init(struct cpufreq_policy *policy)
+static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy)
 {
 	int ret = -EINVAL;
 
Quoted 14 lines · Micha? Nazarewicz
Quoted 3 lines · Tom?? 'Sleep_Walker' ??ech

It seems that we have some problems with g_ether and pxa cpufreq. This is problematic output of `make CONFIG_DEBUG_SECTION_MISMATCH=y':

Problems with g_ether should be fixed in -next.

--
Best regards, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?_ ? ? _ | Humble Liege of Serenely Enlightened Majesty of ?o' \,=./ `o | Computer Science, ?Micha? "mina86" Nazarewicz ? ? ? (o o) +----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--