x86_64: fix section mismatch warning in init.c
authorSam Ravnborg <sam@ravnborg.org>
Sun, 22 Jul 2007 09:12:44 +0000 (11:12 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 18:03:38 +0000 (11:03 -0700)
commitdec2e6b7aa5d45bc3508e19907a7716b0c5307e5
tree6214a1061268c805aded57413e98544456f175ab
parent7aa6ec56b9e9e95eb6c83516ddbb6159fd11c224
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>
arch/x86_64/mm/init.c
mm/sparse.c