Commit 92af3e25 authored by Dan Aloni's avatar Dan Aloni Committed by Linus Torvalds

Make s390 and s390x print the right freed init memory size.

The expression (&__init_begin - &__init_end) depends on the type
of this adhoc extern variables, which was changed from char to long
when the code was copied from another arch.
parent 13e895aa
...@@ -189,7 +189,7 @@ void free_initmem(void) ...@@ -189,7 +189,7 @@ void free_initmem(void)
totalram_pages++; totalram_pages++;
} }
printk ("Freeing unused kernel memory: %dk freed\n", printk ("Freeing unused kernel memory: %dk freed\n",
(&__init_end - &__init_begin) >> 10); ((unsigned long)&__init_end - (unsigned long)&__init_begin) >> 10);
} }
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
......
...@@ -201,7 +201,7 @@ void free_initmem(void) ...@@ -201,7 +201,7 @@ void free_initmem(void)
totalram_pages++; totalram_pages++;
} }
printk ("Freeing unused kernel memory: %ldk freed\n", printk ("Freeing unused kernel memory: %ldk freed\n",
(&__init_end - &__init_begin) >> 10); ((unsigned long)&__init_end - (unsigned long)&__init_begin) >> 10);
} }
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment