diff options
author | Andi Kleen <ak@suse.de> | 2006-03-25 16:30:25 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 09:10:55 -0800 |
commit | 5f44a669805ab2c18b347436ec5333173b821268 (patch) | |
tree | 15dda06f51067c3aeff7b794cbdd071a153297d0 /arch | |
parent | f2d3efedbecc04dc348d723e4c90b46731b3bb48 (diff) | |
download | kernel_samsung_smdk4412-5f44a669805ab2c18b347436ec5333173b821268.zip kernel_samsung_smdk4412-5f44a669805ab2c18b347436ec5333173b821268.tar.gz kernel_samsung_smdk4412-5f44a669805ab2c18b347436ec5333173b821268.tar.bz2 |
[PATCH] x86_64: Add __init to fixmap functions that are only called during boot
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/mm/init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 54c7f59..b044156 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c @@ -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) @@ -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; @@ -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); |