[PATCH] properly __init-annotate bootmem helper functions

From: Jan Beulich
Date: Fri Nov 20 2009 - 08:43:03 EST


Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

---
mm/bootmem.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

--- linux-2.6.32-rc8/mm/bootmem.c 2009-11-20 14:11:50.000000000 +0100
+++ 2.6.32-rc8-bootmem-align-functions/mm/bootmem.c 2009-11-20 11:23:52.000000000 +0100
@@ -408,8 +408,8 @@ int __init reserve_bootmem(unsigned long
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;

@@ -421,8 +421,8 @@ static unsigned long align_idx(struct bo
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);




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/