diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-07-26 13:41:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 14:35:19 -0400 |
commit | 252c01dc272c4b56bf1ab8582b3031682de153b3 (patch) | |
tree | 2dc1b538c089dccd83df8804137cf73635f9749f /arch/x86_64/kernel/tce.c | |
parent | ddcc3050bddc267f8d6e811bd930e885729f900b (diff) |
x86_64: fix section mismatch warnings in tce
Fix the following two section mismatch warnings:
WARNING: vmlinux.o(.text+0x1ce84): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table')
WARNING: vmlinux.o(.text+0x1d04d): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder')
In both cases the functions was used only from __init
context so mark them __init.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/tce.c')
-rw-r--r-- | arch/x86_64/kernel/tce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/tce.c b/arch/x86_64/kernel/tce.c index 3aeae2fa2e24..821527e7faa3 100644 --- a/arch/x86_64/kernel/tce.c +++ b/arch/x86_64/kernel/tce.c | |||
@@ -165,7 +165,7 @@ done: | |||
165 | return ret; | 165 | return ret; |
166 | } | 166 | } |
167 | 167 | ||
168 | void* alloc_tce_table(void) | 168 | void * __init alloc_tce_table(void) |
169 | { | 169 | { |
170 | unsigned int size; | 170 | unsigned int size; |
171 | 171 | ||
@@ -175,7 +175,7 @@ void* alloc_tce_table(void) | |||
175 | return __alloc_bootmem_low(size, size, 0); | 175 | return __alloc_bootmem_low(size, size, 0); |
176 | } | 176 | } |
177 | 177 | ||
178 | void free_tce_table(void *tbl) | 178 | void __init free_tce_table(void *tbl) |
179 | { | 179 | { |
180 | unsigned int size; | 180 | unsigned int size; |
181 | 181 | ||