diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-07-22 05:12:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 14:03:38 -0400 |
commit | dec2e6b7aa5d45bc3508e19907a7716b0c5307e5 (patch) | |
tree | 6214a1061268c805aded57413e98544456f175ab /arch/x86_64/mm | |
parent | 7aa6ec56b9e9e95eb6c83516ddbb6159fd11c224 (diff) |
x86_64: fix section mismatch warning in init.c
Fix following warning:
WARNING: vmlinux.o(.text+0x188ea): Section mismatch: reference to .init.text:__alloc_bootmem_core (between 'alloc_bootmem_high_node' and 'get_gate_vma')
alloc_bootmem_high_node() is only used from __init scope so declare it __init.
And in addition declare the weak variant __init too.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r-- | arch/x86_64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 314e12b2209f..38f5d6368006 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -724,7 +724,7 @@ int in_gate_area_no_task(unsigned long addr) | |||
724 | return (addr >= VSYSCALL_START) && (addr < VSYSCALL_END); | 724 | return (addr >= VSYSCALL_START) && (addr < VSYSCALL_END); |
725 | } | 725 | } |
726 | 726 | ||
727 | void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size) | 727 | void * __init alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size) |
728 | { | 728 | { |
729 | return __alloc_bootmem_core(pgdat->bdata, size, | 729 | return __alloc_bootmem_core(pgdat->bdata, size, |
730 | SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0); | 730 | SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0); |