All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: omap: fix section mismatch warning
@ 2011-03-02 22:41 tom.leiming at gmail.com
  2011-03-03  0:32 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: tom.leiming at gmail.com @ 2011-03-02 22:41 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ming Lei <tom.leiming@gmail.com>

WARNING: arch/arm/plat-omap/built-in.o(.data+0x6d4): Section mismatch in reference from the variable omap_driver to the function .init.text:omap_cpu_init()
The variable omap_driver references
the function __init omap_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: Ming Lei <tom.leiming@gmail.com>
---
 arch/arm/plat-omap/cpu-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c
index 11c54ec..da4f68d 100644
--- a/arch/arm/plat-omap/cpu-omap.c
+++ b/arch/arm/plat-omap/cpu-omap.c
@@ -101,7 +101,7 @@ static int omap_target(struct cpufreq_policy *policy,
 	return ret;
 }
 
-static int __init omap_cpu_init(struct cpufreq_policy *policy)
+static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
 {
 	int result = 0;
 
-- 
1.7.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] ARM: OMAP: Fix section mismatch warning
@ 2007-08-12  7:14 Dirk Behme
  2007-08-13  8:56 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Dirk Behme @ 2007-08-12  7:14 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

Fix

WARNING: vmlinux.o(.text+0x1554c): Section mismatch: reference to
.init.text:reserve_bootmem (between 'omapfb_reserve_sdram' and
'omap_32k_timer_set_mode')

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>

[-- Attachment #2: 02_section_mismatch_warning_patch.txt --]
[-- Type: text/plain, Size: 551 bytes --]

Index: linux-osk/arch/arm/plat-omap/fb.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/fb.c
+++ linux-osk/arch/arm/plat-omap/fb.c
@@ -171,7 +171,7 @@ static int check_fbmem_region(int region
  * Called from map_io. We need to call to this early enough so that we
  * can reserve the fixed SDRAM regions before VM could get hold of them.
  */
-void omapfb_reserve_sdram(void)
+void __init omapfb_reserve_sdram(void)
 {
 	struct bootmem_data	*bdata;
 	unsigned long		sdram_start, sdram_size;


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2011-03-03  0:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 22:41 [PATCH] arm: omap: fix section mismatch warning tom.leiming at gmail.com
2011-03-03  0:32 ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2007-08-12  7:14 [PATCH] ARM: OMAP: Fix " Dirk Behme
2007-08-13  8:56 ` Tony Lindgren

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.