From: Sam Ravnborg Date: Sun, 22 Jul 2007 09:12:44 +0000 (+0200) Subject: x86_64: fix section mismatch warning in init.c X-Git-Tag: v2.6.23-rc1~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec2e6b7aa5d45bc3508e19907a7716b0c5307e5;p=pandora-kernel.git 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 Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed