diff options
author | Jiri Kosina <jkosina@suse.cz> | 2012-02-28 10:16:33 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-03-03 18:51:20 -0500 |
commit | e37aade31601cdb9f078f6663cbf887f391bb110 (patch) | |
tree | 1ba9b909ff5ebb238af5bfaabe82091061b443ac /arch/x86/mm | |
parent | 001f3a48877a24afa7dfead84eb4678c68ab062e (diff) |
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>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/numa_emulation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_emulation.c b/arch/x86/mm/numa_emulation.c index 46db56845f18..2fff6518e302 100644 --- a/arch/x86/mm/numa_emulation.c +++ b/arch/x86/mm/numa_emulation.c | |||
@@ -28,7 +28,7 @@ static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) | |||
28 | return -ENOENT; | 28 | return -ENOENT; |
29 | } | 29 | } |
30 | 30 | ||
31 | static u64 mem_hole_size(u64 start, u64 end) | 31 | static u64 __init mem_hole_size(u64 start, u64 end) |
32 | { | 32 | { |
33 | unsigned long start_pfn = PFN_UP(start); | 33 | unsigned long start_pfn = PFN_UP(start); |
34 | unsigned long end_pfn = PFN_DOWN(end); | 34 | unsigned long end_pfn = PFN_DOWN(end); |