Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e37aade3 authored by Jiri Kosina's avatar Jiri Kosina Committed by H. Peter Anvin
Browse files

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: default avatarJiri Kosina <jkosina@suse.cz>
Link: http://lkml.kernel.org/r/alpine.LNX.2.00.1202281614450.31150@pobox.suse.cz


Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 001f3a48
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi)
	return -ENOENT;
	return -ENOENT;
}
}


static u64 mem_hole_size(u64 start, u64 end)
static u64 __init mem_hole_size(u64 start, u64 end)
{
{
	unsigned long start_pfn = PFN_UP(start);
	unsigned long start_pfn = PFN_UP(start);
	unsigned long end_pfn = PFN_DOWN(end);
	unsigned long end_pfn = PFN_DOWN(end);