diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-06-05 23:23:06 -0400 |
---|---|---|
committer | Paul Mundt <lethal@hera.kernel.org> | 2007-06-07 22:43:48 -0400 |
commit | 07cbb41b5308b92f29649254ff755e48ea60e24c (patch) | |
tree | 9d91f01428a1d12465add6c742acda45772ee1e8 /arch/sh/mm/init.c | |
parent | 2de212ebd8d5c1a17e40bffcc7e434443105c4b8 (diff) |
sh: Use asm/sections.h for linker section symbols.
Kill off a bunch of externs, and use sections.h instead..
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r-- | arch/sh/mm/init.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 2032b39c229a..753e11d5e620 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <asm/mmu_context.h> | 18 | #include <asm/mmu_context.h> |
19 | #include <asm/tlb.h> | 19 | #include <asm/tlb.h> |
20 | #include <asm/cacheflush.h> | 20 | #include <asm/cacheflush.h> |
21 | #include <asm/sections.h> | ||
21 | #include <asm/cache.h> | 22 | #include <asm/cache.h> |
22 | 23 | ||
23 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 24 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
@@ -132,11 +133,6 @@ void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot) | |||
132 | } | 133 | } |
133 | #endif /* CONFIG_MMU */ | 134 | #endif /* CONFIG_MMU */ |
134 | 135 | ||
135 | /* References to section boundaries */ | ||
136 | |||
137 | extern char _text, _etext, _edata, __bss_start, _end; | ||
138 | extern char __init_begin, __init_end; | ||
139 | |||
140 | /* | 136 | /* |
141 | * paging_init() sets up the page tables | 137 | * paging_init() sets up the page tables |
142 | */ | 138 | */ |
@@ -251,8 +247,9 @@ void free_initmem(void) | |||
251 | free_page(addr); | 247 | free_page(addr); |
252 | totalram_pages++; | 248 | totalram_pages++; |
253 | } | 249 | } |
254 | printk("Freeing unused kernel memory: %dk freed\n", | 250 | printk("Freeing unused kernel memory: %ldk freed\n", |
255 | (&__init_end - &__init_begin) >> 10); | 251 | ((unsigned long)&__init_end - |
252 | (unsigned long)&__init_begin) >> 10); | ||
256 | } | 253 | } |
257 | 254 | ||
258 | #ifdef CONFIG_BLK_DEV_INITRD | 255 | #ifdef CONFIG_BLK_DEV_INITRD |