diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-06-05 14:41:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 00:38:01 -0400 |
commit | 50215d6511265d46ba14038640b16c5dd7731ff4 (patch) | |
tree | e8c70718dcb89aee9fc7ee4f42e22f3a382a85c6 /arch/sparc/mm/init.c | |
parent | c61c65cdcd1021cfbd7be8685ff1cf4f86c68c44 (diff) |
sparc/mm/: possible cleanups
This patch contains the following possible cleanups:
- make the following needlessly global code static:
- fault.c: force_user_fault()
- init.c: calc_max_low_pfn()
- init.c: pgt_cache_water[]
- init.c: map_high_region()
- srmmu.c: hwbug_bitmask
- srmmu.c: srmmu_swapper_pg_dir
- srmmu.c: srmmu_context_table
- srmmu.c: is_hypersparc
- srmmu.c: srmmu_cache_pagetables
- srmmu.c: srmmu_nocache_size
- srmmu.c: srmmu_nocache_end
- srmmu.c: srmmu_get_nocache()
- srmmu.c: srmmu_free_nocache()
- srmmu.c: srmmu_early_allocate_ptable_skeleton()
- srmmu.c: srmmu_nocache_calcsize()
- srmmu.c: srmmu_nocache_init()
- srmmu.c: srmmu_alloc_thread_info()
- srmmu.c: early_pgtable_allocfail()
- srmmu.c: srmmu_early_allocate_ptable_skeleton()
- srmmu.c: srmmu_allocate_ptable_skeleton()
- srmmu.c: srmmu_inherit_prom_mappings()
- sunami.S: tsunami_copy_1page
- remove the following unused code:
- init.c: struct sparc_aliases
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/init.c')
-rw-r--r-- | arch/sparc/mm/init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/sparc/mm/init.c b/arch/sparc/mm/init.c index 7794ecb896e3..8f94a2d62f13 100644 --- a/arch/sparc/mm/init.c +++ b/arch/sparc/mm/init.c | |||
@@ -128,7 +128,7 @@ unsigned long calc_highpages(void) | |||
128 | return nr; | 128 | return nr; |
129 | } | 129 | } |
130 | 130 | ||
131 | unsigned long calc_max_low_pfn(void) | 131 | static unsigned long calc_max_low_pfn(void) |
132 | { | 132 | { |
133 | int i; | 133 | int i; |
134 | unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); | 134 | unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); |
@@ -292,7 +292,7 @@ unsigned long __init bootmem_init(unsigned long *pages_avail) | |||
292 | * | 292 | * |
293 | * We simply copy the 2.4 implementation for now. | 293 | * We simply copy the 2.4 implementation for now. |
294 | */ | 294 | */ |
295 | int pgt_cache_water[2] = { 25, 50 }; | 295 | static int pgt_cache_water[2] = { 25, 50 }; |
296 | 296 | ||
297 | void check_pgt_cache(void) | 297 | void check_pgt_cache(void) |
298 | { | 298 | { |
@@ -356,8 +356,6 @@ void __init paging_init(void) | |||
356 | device_scan(); | 356 | device_scan(); |
357 | } | 357 | } |
358 | 358 | ||
359 | struct cache_palias *sparc_aliases; | ||
360 | |||
361 | static void __init taint_real_pages(void) | 359 | static void __init taint_real_pages(void) |
362 | { | 360 | { |
363 | int i; | 361 | int i; |
@@ -375,7 +373,7 @@ static void __init taint_real_pages(void) | |||
375 | } | 373 | } |
376 | } | 374 | } |
377 | 375 | ||
378 | void map_high_region(unsigned long start_pfn, unsigned long end_pfn) | 376 | static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) |
379 | { | 377 | { |
380 | unsigned long tmp; | 378 | unsigned long tmp; |
381 | 379 | ||