From: Jan Beulich Date: Tue, 15 Dec 2009 01:59:46 +0000 (-0800) Subject: mm/bootmem.c: properly __init-annotate helper functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8aa043d74559556a661cb2eb6e64497eec86ec77;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/bootmem.c: properly __init-annotate helper functions Signed-off-by: Jan Beulich Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/bootmem.c b/mm/bootmem.c index d1dc23cc7f10..7d1486875e1c 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -432,8 +432,8 @@ int __init reserve_bootmem(unsigned long addr, unsigned long size, return mark_bootmem(start, end, 1, flags); } -static unsigned long align_idx(struct bootmem_data *bdata, unsigned long idx, - unsigned long step) +static unsigned long __init align_idx(struct bootmem_data *bdata, + unsigned long idx, unsigned long step) { unsigned long base = bdata->node_min_pfn; @@ -445,8 +445,8 @@ static unsigned long align_idx(struct bootmem_data *bdata, unsigned long idx, return ALIGN(base + idx, step) - base; } -static unsigned long align_off(struct bootmem_data *bdata, unsigned long off, - unsigned long align) +static unsigned long __init align_off(struct bootmem_data *bdata, + unsigned long off, unsigned long align) { unsigned long base = PFN_PHYS(bdata->node_min_pfn);