]> err.no Git - linux-2.6/commitdiff
[POWERPC] Add __init annotations to reserve_mem() and stabs_alloc()
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 7 May 2007 05:58:28 +0000 (15:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 8 May 2007 01:54:19 +0000 (11:54 +1000)
reserve_mem() and stabs_alloc() are both called only from other __init
routines, so can be marked __init.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c
arch/powerpc/mm/stab.c

index 87efb42247d10260431ea99b2f3ca364ab799938..eee3555ced7c97aba2fe82cf63a2e8e3e2150a21 100644 (file)
@@ -967,7 +967,7 @@ static unsigned long __init prom_next_cell(int s, cell_t **cellp)
  * If problems seem to show up, it would be a good start to track
  * them down.
  */
-static void reserve_mem(u64 base, u64 size)
+static void __init reserve_mem(u64 base, u64 size)
 {
        u64 top = base + size;
        unsigned long cnt = RELOC(mem_reserve_cnt);
index eeeacab548e655f79f2f0ea90c86d16dd2b47ffd..132c6bc66ce1405f976a12e1d419e6e05c47e7f8 100644 (file)
@@ -227,7 +227,7 @@ void switch_stab(struct task_struct *tsk, struct mm_struct *mm)
  * the first (bolted) segment, so that do_stab_bolted won't get a
  * recursive segment miss on the segment table itself.
  */
-void stabs_alloc(void)
+void __init stabs_alloc(void)
 {
        int cpu;