]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm, arch: fix two errors in calling mem_init_print_info()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:51:58 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:48 +0000 (16:37 +1000)
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 <jiang.liu@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm64/mm/init.c
arch/microblaze/mm/init.c

index b16c778ea0dea4c32cca0a4beeca98d7a5d65326..67e8d7ce3fe7a68ac1c974058de83b8d6226086e 100644 (file)
@@ -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
index 6566e696eebbc2fcb49040937b26df64db9d0026..74c7bcc1e82d8da05b6775274f572fe17114d5f0 100644 (file)
@@ -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);