From: Jiang Liu Date: Thu, 27 Jun 2013 23:51:58 +0000 (+1000) Subject: mm, arch: fix two errors in calling mem_init_print_info() X-Git-Tag: next-20130628~3^2~470 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aa40e54bea03c7b1bd4f74a7eeb9881170ac73be;p=karo-tx-linux.git mm, arch: fix two errors in calling mem_init_print_info() Fix two errors in calling mem_init_print_info() caused by incidents. All error/warnings: arch/microblaze/mm/init.c: In function 'mem_init': >> arch/microblaze/mm/init.c:249:22: error: 'str' undeclared (first use in this function) arch/microblaze/mm/init.c:249:22: note: each undeclared identifier is reported only once for each function it appears in vim +/str +249 arch/microblaze/mm/init.c 243 /* this will put all memory onto the freelists */ 244 free_all_bootmem(); 245 #ifdef CONFIG_HIGHMEM 246 highmem_setup(); 247 #endif 248 > 249 mem_init_print_info(str); 250 #ifdef CONFIG_MMU 251 pr_info("Kernel virtual memory layout:\n"); 252 pr_info(" * 0x%08lx..0x%08lx : fixmap\n", FIXADDR_START, FIXADDR_TOP); Signed-off-by: Jiang Liu Signed-off-by: Andrew Morton --- diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index b16c778ea0de..67e8d7ce3fe7 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -282,7 +282,7 @@ void __init mem_init(void) /* this will put all unused low memory onto the freelists */ free_all_bootmem(); - mem_init_print_info(); + mem_init_print_info(NULL); #define MLK(b, t) b, t, ((t) - (b)) >> 10 #define MLM(b, t) b, t, ((t) - (b)) >> 20 diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 6566e696eebb..74c7bcc1e82d 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -246,7 +246,7 @@ void __init mem_init(void) highmem_setup(); #endif - mem_init_print_info(str); + mem_init_print_info(NULL); #ifdef CONFIG_MMU pr_info("Kernel virtual memory layout:\n"); pr_info(" * 0x%08lx..0x%08lx : fixmap\n", FIXADDR_START, FIXADDR_TOP);