summaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-07-22 11:12:44 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-22 11:03:38 -0700
commitdec2e6b7aa5d45bc3508e19907a7716b0c5307e5 (patch)
tree6214a1061268c805aded57413e98544456f175ab /mm/sparse.c
parent7aa6ec56b9e9e95eb6c83516ddbb6159fd11c224 (diff)
downloadlinux-dec2e6b7aa5d45bc3508e19907a7716b0c5307e5.tar.gz
linux-dec2e6b7aa5d45bc3508e19907a7716b0c5307e5.tar.bz2
linux-dec2e6b7aa5d45bc3508e19907a7716b0c5307e5.zip
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 'mm/sparse.c')
-rw-r--r--mm/sparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c
index e03b39f3540f..3047bf06c1f3 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -209,7 +209,7 @@ static int __meminit sparse_init_one_section(struct mem_section *ms,
return 1;
}
-__attribute__((weak))
+__attribute__((weak)) __init
void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
{
return NULL;