提交 8aa043d7 编写于 作者: J Jan Beulich 提交者: Linus Torvalds

mm/bootmem.c: properly __init-annotate helper functions

Signed-off-by: NJan Beulich <jbeulich@novell.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9ae49fab
...@@ -432,8 +432,8 @@ int __init reserve_bootmem(unsigned long addr, unsigned long size, ...@@ -432,8 +432,8 @@ int __init reserve_bootmem(unsigned long addr, unsigned long size,
return mark_bootmem(start, end, 1, flags); return mark_bootmem(start, end, 1, flags);
} }
static unsigned long align_idx(struct bootmem_data *bdata, unsigned long idx, static unsigned long __init align_idx(struct bootmem_data *bdata,
unsigned long step) unsigned long idx, unsigned long step)
{ {
unsigned long base = bdata->node_min_pfn; unsigned long base = bdata->node_min_pfn;
...@@ -445,8 +445,8 @@ static unsigned long align_idx(struct bootmem_data *bdata, unsigned long idx, ...@@ -445,8 +445,8 @@ static unsigned long align_idx(struct bootmem_data *bdata, unsigned long idx,
return ALIGN(base + idx, step) - base; return ALIGN(base + idx, step) - base;
} }
static unsigned long align_off(struct bootmem_data *bdata, unsigned long off, static unsigned long __init align_off(struct bootmem_data *bdata,
unsigned long align) unsigned long off, unsigned long align)
{ {
unsigned long base = PFN_PHYS(bdata->node_min_pfn); unsigned long base = PFN_PHYS(bdata->node_min_pfn);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册