aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-05-08 00:27:07 -0400
committerPaul Mackerras <paulus@samba.org>2008-05-14 08:31:46 -0400
commit09de9ff872bca25ba717a7075c9ee49b1bdb56d2 (patch)
treeab4da7df326889b689c7767b6b5c3b711ca2538e /arch/powerpc/mm
parent5f25f06529ecb4b20efc7ba00de599f5b9f4b63c (diff)
[POWERPC] Fix sparse warnings in arch/powerpc/mm
Make two vmemmap helpers static in init_64.c Make stab variables static in stab.c Make psize defs static in hash_utils_64.c Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c4
-rw-r--r--arch/powerpc/mm/init_64.c4
-rw-r--r--arch/powerpc/mm/stab.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 2b5a399f6fa6..1a4b4b36b0c6 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -117,7 +117,7 @@ static DEFINE_SPINLOCK(linear_map_hash_lock);
117 117
118/* Pre-POWER4 CPUs (4k pages only) 118/* Pre-POWER4 CPUs (4k pages only)
119 */ 119 */
120struct mmu_psize_def mmu_psize_defaults_old[] = { 120static struct mmu_psize_def mmu_psize_defaults_old[] = {
121 [MMU_PAGE_4K] = { 121 [MMU_PAGE_4K] = {
122 .shift = 12, 122 .shift = 12,
123 .sllp = 0, 123 .sllp = 0,
@@ -131,7 +131,7 @@ struct mmu_psize_def mmu_psize_defaults_old[] = {
131 * 131 *
132 * Support for 16Mb large pages 132 * Support for 16Mb large pages
133 */ 133 */
134struct mmu_psize_def mmu_psize_defaults_gp[] = { 134static struct mmu_psize_def mmu_psize_defaults_gp[] = {
135 [MMU_PAGE_4K] = { 135 [MMU_PAGE_4K] = {
136 .shift = 12, 136 .shift = 12,
137 .sllp = 0, 137 .sllp = 0,
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index c5ac532a0161..1e52e97d7409 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -183,7 +183,7 @@ void pgtable_cache_init(void)
183 * do this by hand as the proffered address may not be correctly aligned. 183 * do this by hand as the proffered address may not be correctly aligned.
184 * Subtraction of non-aligned pointers produces undefined results. 184 * Subtraction of non-aligned pointers produces undefined results.
185 */ 185 */
186unsigned long __meminit vmemmap_section_start(unsigned long page) 186static unsigned long __meminit vmemmap_section_start(unsigned long page)
187{ 187{
188 unsigned long offset = page - ((unsigned long)(vmemmap)); 188 unsigned long offset = page - ((unsigned long)(vmemmap));
189 189
@@ -196,7 +196,7 @@ unsigned long __meminit vmemmap_section_start(unsigned long page)
196 * which overlaps this vmemmap page is initialised then this page is 196 * which overlaps this vmemmap page is initialised then this page is
197 * initialised already. 197 * initialised already.
198 */ 198 */
199int __meminit vmemmap_populated(unsigned long start, int page_size) 199static int __meminit vmemmap_populated(unsigned long start, int page_size)
200{ 200{
201 unsigned long end = start + page_size; 201 unsigned long end = start + page_size;
202 202
diff --git a/arch/powerpc/mm/stab.c b/arch/powerpc/mm/stab.c
index efbbd13d93e5..60e6032a8088 100644
--- a/arch/powerpc/mm/stab.c
+++ b/arch/powerpc/mm/stab.c
@@ -30,8 +30,8 @@ struct stab_entry {
30}; 30};
31 31
32#define NR_STAB_CACHE_ENTRIES 8 32#define NR_STAB_CACHE_ENTRIES 8
33DEFINE_PER_CPU(long, stab_cache_ptr); 33static DEFINE_PER_CPU(long, stab_cache_ptr);
34DEFINE_PER_CPU(long, stab_cache[NR_STAB_CACHE_ENTRIES]); 34static DEFINE_PER_CPU(long, stab_cache[NR_STAB_CACHE_ENTRIES]);
35 35
36/* 36/*
37 * Create a segment table entry for the given esid/vsid pair. 37 * Create a segment table entry for the given esid/vsid pair.