Skip to content

Commit

Permalink
[PATCH] x86_64: Add __init to fixmap functions that are only called d…
Browse files Browse the repository at this point in the history
…uring boot

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Mar 25, 2006
1 parent f2d3efe commit 5f44a66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/x86_64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void show_mem(void)

int after_bootmem;

static void *spp_getpage(void)
static __init void *spp_getpage(void)
{
void *ptr;
if (after_bootmem)
Expand All @@ -108,7 +108,7 @@ static void *spp_getpage(void)
return ptr;
}

static void set_pte_phys(unsigned long vaddr,
static __init void set_pte_phys(unsigned long vaddr,
unsigned long phys, pgprot_t prot)
{
pgd_t *pgd;
Expand Down Expand Up @@ -157,7 +157,8 @@ static void set_pte_phys(unsigned long vaddr,
}

/* NOTE: this is meant to be run only at boot */
void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
void __init
__set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
{
unsigned long address = __fix_to_virt(idx);

Expand Down

0 comments on commit 5f44a66

Please sign in to comment.