Skip to content

Commit

Permalink
[POWERPC] Add __init annotations to reserve_mem() and stabs_alloc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed May 8, 2007
1 parent 11fbb00 commit 0108d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/mm/stab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0108d3f

Please sign in to comment.