Commit 9de15e9110b760c91a32197c4e4c88c32235ece1

Authored by Yoshinori Sato
Committed by Linus Torvalds
1 parent b1c3c89827

h8300: fix section mismatches

WARNING: vmlinux.o(.text+0x2fdf): Section mismatch in reference from the variable .LM3 to the variable .init.text:___alloc_bootmem
The function .LM3() references
the variable __init ___alloc_bootmem.
This is often because .LM3 lacks a __init
annotation or the annotation of ___alloc_bootmem is wrong.

WARNING: vmlinux.o(.text+0x2ff5): Section mismatch in reference from the variable .LM4 to the variable .init.text:___alloc_bootmem
The function .LM4() references
the variable __init ___alloc_bootmem.
This is often because .LM4 lacks a __init
annotation or the annotation of ___alloc_bootmem is wrong.

WARNING: vmlinux.o(.text+0x300b): Section mismatch in reference from the variable .LM5 to the variable .init.text:___alloc_bootmem
The function .LM5() references
the variable __init ___alloc_bootmem.
This is often because .LM5 lacks a __init
annotation or the annotation of ___alloc_bootmem is wrong.

WARNING: vmlinux.o(.text+0x304b): Section mismatch in reference from the variable .LM10 to the variable .init.text:_free_area_init
The function .LM10() references
the variable __init _free_area_init.
This is often because .LM10 lacks a __init
annotation or the annotation of _free_area_init is wrong.

WARNING: vmlinux.o(.text+0x30a3): Section mismatch in reference from the variable .LM17 to the variable .init.text:_free_all_bootmem
The function .LM17() references
the variable __init _free_all_bootmem.
This is often because .LM17 lacks a __init
annotation or the annotation of _free_all_bootmem is wrong.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 6 deletions Side-by-side Diff

arch/h8300/mm/init.c
... ... @@ -40,9 +40,6 @@
40 40  
41 41 #undef DEBUG
42 42  
43   -extern void die_if_kernel(char *,struct pt_regs *,long);
44   -extern void free_initmem(void);
45   -
46 43 /*
47 44 * BAD_PAGE is the page that is used for page faults when linux
48 45 * is out-of-memory. Older versions of linux just did a
... ... @@ -73,7 +70,7 @@
73 70 * The parameters are pointers to where to stick the starting and ending
74 71 * addresses of available kernel virtual memory.
75 72 */
76   -void paging_init(void)
  73 +void __init paging_init(void)
77 74 {
78 75 /*
79 76 * Make sure start_mem is page aligned, otherwise bootmem and
... ... @@ -122,7 +119,7 @@
122 119 }
123 120 }
124 121  
125   -void mem_init(void)
  122 +void __init mem_init(void)
126 123 {
127 124 int codek = 0, datak = 0, initk = 0;
128 125 /* DAVIDM look at setup memory map generically with reserved area */
... ... @@ -178,7 +175,7 @@
178 175 #endif
179 176  
180 177 void
181   -free_initmem()
  178 +free_initmem(void)
182 179 {
183 180 #ifdef CONFIG_RAMKERNEL
184 181 unsigned long addr;