* [PATCH] Add __init annotations to reserve_mem() and stabs_alloc()
@ 2007-05-07 5:58 Michael Ellerman
0 siblings, 0 replies; only message in thread
From: Michael Ellerman @ 2007-05-07 5:58 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
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>
---
arch/powerpc/kernel/prom_init.c | 2 +-
arch/powerpc/mm/stab.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: msi-new/arch/powerpc/kernel/prom_init.c
===================================================================
--- msi-new.orig/arch/powerpc/kernel/prom_init.c
+++ msi-new/arch/powerpc/kernel/prom_init.c
@@ -967,7 +967,7 @@ static unsigned long __init prom_next_ce
* 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: msi-new/arch/powerpc/mm/stab.c
===================================================================
--- msi-new.orig/arch/powerpc/mm/stab.c
+++ msi-new/arch/powerpc/mm/stab.c
@@ -227,7 +227,7 @@ void switch_stab(struct task_struct *tsk
* 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-07 5:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 5:58 [PATCH] Add __init annotations to reserve_mem() and stabs_alloc() Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).