public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* several section mismatches
@ 2010-08-02  9:21 Tomáš 'Sleep_Walker' Čech
  2010-08-05  9:20 ` Michał Nazarewicz
  0 siblings, 1 reply; 3+ messages in thread
From: Tomáš 'Sleep_Walker' Čech @ 2010-08-02  9:21 UTC (permalink / raw)
  To: linux-arm-kernel

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* several section mismatches
  2010-08-02  9:21 several section mismatches Tomáš 'Sleep_Walker' Čech
@ 2010-08-05  9:20 ` Michał Nazarewicz
  2010-08-18  3:54   ` Eric Miao
  0 siblings, 1 reply; 3+ messages in thread
From: Michał Nazarewicz @ 2010-08-05  9:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 02 Aug 2010 11:21:23 +0200, Tom?? 'Sleep_Walker'  ?ech <sleep_walker@suse.cz> wrote:
> 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--

^ permalink raw reply	[flat|nested] 3+ messages in thread

* several section mismatches
  2010-08-05  9:20 ` Michał Nazarewicz
@ 2010-08-18  3:54   ` Eric Miao
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Miao @ 2010-08-18  3:54 UTC (permalink / raw)
  To: linux-arm-kernel

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

diff --git a/arch/arm/mach-pxa/cpufreq-pxa2xx.c
b/arch/arm/mach-pxa/cpufreq-pxa2xx.c
index 268a9bc..50d5939 100644
--- a/arch/arm/mach-pxa/cpufreq-pxa2xx.c
+++ b/arch/arm/mach-pxa/cpufreq-pxa2xx.c
@@ -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;
diff --git a/arch/arm/mach-pxa/cpufreq-pxa3xx.c
b/arch/arm/mach-pxa/cpufreq-pxa3xx.c
index 27fa329..0a0d0fe 100644
--- a/arch/arm/mach-pxa/cpufreq-pxa3xx.c
+++ b/arch/arm/mach-pxa/cpufreq-pxa3xx.c
@@ -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;


On Thu, Aug 5, 2010 at 5:20 PM, Micha? Nazarewicz
<m.nazarewicz@samsung.com> wrote:
> On Mon, 02 Aug 2010 11:21:23 +0200, Tom?? 'Sleep_Walker' ??ech
> <sleep_walker@suse.cz> wrote:
>>
>> 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--
>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-18  3:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02  9:21 several section mismatches Tomáš 'Sleep_Walker' Čech
2010-08-05  9:20 ` Michał Nazarewicz
2010-08-18  3:54   ` Eric Miao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox