Skip to contentSkip to conversation

ARM: OMAP: Fix section mismatch warning

PATCH In review Dirk Behme 2 participants 2 messages Aug 12, 2007 – Aug 13, 2007

Subsystems (2)
lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 ARM: OMAP: Fix section mismatch warning

Fix

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

arch/arm/plat-omap/fb.c +1 -1
Index: 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;
#1 lore raw
Quoted 14 lines · Dirk Behme

Fix

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

Index: linux-osk/arch/arm/plat-omap/fb.c
===================================================================

arch/arm/plat-omap/fb.c static int check_fbmem_region(int region · line 177

Quoted 8 lines
arch/arm/plat-omap/fb.c +1 -1
@@ -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;

Pushing today.

Tony