]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86, memblock: Move mem_hole_size() to .init
authorJiri Kosina <jkosina@suse.cz>
Tue, 28 Feb 2012 15:16:33 +0000 (16:16 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 3 Mar 2012 23:51:20 +0000 (15:51 -0800)
commite37aade31601cdb9f078f6663cbf887f391bb110
tree1ba9b909ff5ebb238af5bfaabe82091061b443ac
parent001f3a48877a24afa7dfead84eb4678c68ab062e
x86, memblock: Move mem_hole_size() to .init

mem_hole_size() is being called only from __init-marked functions, and as
such should be moved to .init section as well. Fixes this warning:

WARNING: vmlinux.o(.text+0x35511): Section mismatch in reference from the function mem_hole_size() to the function .init.text:absent_pages_in_range()

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Link: http://lkml.kernel.org/r/alpine.LNX.2.00.1202281614450.31150@pobox.suse.cz
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/mm/numa_emulation.c