diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-07-03 18:04:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:39 -0400 |
commit | 3e548a9e8895318143a983681a8ef97312989880 (patch) | |
tree | f12a2cd40e8e41202e1a0572936cc8170e2f4773 /arch/m68k | |
parent | 2fb1cd5a283a7c40457731415c6e6432f061edc2 (diff) |
mm/m68k: fix build warning of unused variable
Fix build warning of unused variable:
arch/m68k/mm/init.c: In function 'mem_init': arch/m68k/mm/init.c:151:6: warning: unused variable 'i' [-Wunused-variable]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/mm/init.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index 6e0a93869ec9..6b4baa6e4d31 100644 --- a/arch/m68k/mm/init.c +++ b/arch/m68k/mm/init.c | |||
@@ -146,14 +146,11 @@ void __init print_memmap(void) | |||
146 | MLK_ROUNDUP(__bss_start, __bss_stop)); | 146 | MLK_ROUNDUP(__bss_start, __bss_stop)); |
147 | } | 147 | } |
148 | 148 | ||
149 | void __init mem_init(void) | 149 | static inline void init_pointer_tables(void) |
150 | { | 150 | { |
151 | #if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE) | ||
151 | int i; | 152 | int i; |
152 | 153 | ||
153 | /* this will put all memory onto the freelists */ | ||
154 | free_all_bootmem(); | ||
155 | |||
156 | #if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE) | ||
157 | /* insert pointer tables allocated so far into the tablelist */ | 154 | /* insert pointer tables allocated so far into the tablelist */ |
158 | init_pointer_table((unsigned long)kernel_pg_dir); | 155 | init_pointer_table((unsigned long)kernel_pg_dir); |
159 | for (i = 0; i < PTRS_PER_PGD; i++) { | 156 | for (i = 0; i < PTRS_PER_PGD; i++) { |
@@ -165,7 +162,13 @@ void __init mem_init(void) | |||
165 | if (zero_pgtable) | 162 | if (zero_pgtable) |
166 | init_pointer_table((unsigned long)zero_pgtable); | 163 | init_pointer_table((unsigned long)zero_pgtable); |
167 | #endif | 164 | #endif |
165 | } | ||
168 | 166 | ||
167 | void __init mem_init(void) | ||
168 | { | ||
169 | /* this will put all memory onto the freelists */ | ||
170 | free_all_bootmem(); | ||
171 | init_pointer_tables(); | ||
169 | mem_init_print_info(NULL); | 172 | mem_init_print_info(NULL); |
170 | print_memmap(); | 173 | print_memmap(); |
171 | } | 174 | } |