linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] davinci: cpufreq: fix section mismatch warning
@ 2011-02-22  3:23 Axel Lin
  2011-02-28 10:31 ` Nori, Sekhar
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-02-22  3:23 UTC (permalink / raw)
  To: linux-arm-kernel

Fix below section mismatch warning:
WARNING: vmlinux.o(.data+0x673c): Section mismatch in reference from the variable davinci_driver to the function .init.text:davinci_cpu_init()
The variable davinci_driver references
the function __init davinci_cpu_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,

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 arch/arm/mach-davinci/cpufreq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-davinci/cpufreq.c b/arch/arm/mach-davinci/cpufreq.c
index 343de73..4a68c2b 100644
--- a/arch/arm/mach-davinci/cpufreq.c
+++ b/arch/arm/mach-davinci/cpufreq.c
@@ -132,7 +132,7 @@ out:
 	return ret;
 }
 
-static int __init davinci_cpu_init(struct cpufreq_policy *policy)
+static int davinci_cpu_init(struct cpufreq_policy *policy)
 {
 	int result = 0;
 	struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
-- 
1.7.2

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

* [PATCH] davinci: cpufreq: fix section mismatch warning
  2011-02-22  3:23 [PATCH] davinci: cpufreq: fix section mismatch warning Axel Lin
@ 2011-02-28 10:31 ` Nori, Sekhar
  0 siblings, 0 replies; 2+ messages in thread
From: Nori, Sekhar @ 2011-02-28 10:31 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Axel,

On Tue, Feb 22, 2011 at 08:53:53, Axel Lin wrote:
> Fix below section mismatch warning:
> WARNING: vmlinux.o(.data+0x673c): Section mismatch in reference from the variable davinci_driver to the function .init.text:davinci_cpu_init()
> The variable davinci_driver references
> the function __init davinci_cpu_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,
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Will queue for Kevin to send upstream.

Thanks,
Sekhar

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

end of thread, other threads:[~2011-02-28 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22  3:23 [PATCH] davinci: cpufreq: fix section mismatch warning Axel Lin
2011-02-28 10:31 ` Nori, Sekhar

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).