Commit 3af9c5be authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds

arch/um/kernel/um_arch.c: some small improvements

Make some small improvements for arch/um/kernel/um_arch.c.
Signed-off-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 16a26ef5
...@@ -115,7 +115,7 @@ static int have_root __initdata = 0; ...@@ -115,7 +115,7 @@ static int have_root __initdata = 0;
/* Set in uml_mem_setup and modified in linux_main */ /* Set in uml_mem_setup and modified in linux_main */
long long physmem_size = 32 * 1024 * 1024; long long physmem_size = 32 * 1024 * 1024;
static char *usage_string = static const char *usage_string =
"User Mode Linux v%s\n" "User Mode Linux v%s\n"
" available at http://user-mode-linux.sourceforge.net/\n\n"; " available at http://user-mode-linux.sourceforge.net/\n\n";
...@@ -202,7 +202,7 @@ static void __init uml_checksetup(char *line, int *add) ...@@ -202,7 +202,7 @@ static void __init uml_checksetup(char *line, int *add)
p = &__uml_setup_start; p = &__uml_setup_start;
while (p < &__uml_setup_end) { while (p < &__uml_setup_end) {
int n; size_t n;
n = strlen(p->str); n = strlen(p->str);
if (!strncmp(line, p->str, n) && p->setup_func(line + n, add)) if (!strncmp(line, p->str, n) && p->setup_func(line + n, add))
...@@ -258,7 +258,8 @@ int __init linux_main(int argc, char **argv) ...@@ -258,7 +258,8 @@ int __init linux_main(int argc, char **argv)
{ {
unsigned long avail, diff; unsigned long avail, diff;
unsigned long virtmem_size, max_physmem; unsigned long virtmem_size, max_physmem;
unsigned int i, add; unsigned int i;
int add;
char * mode; char * mode;
for (i = 1; i < argc; i++) { for (i = 1; i < argc; i++) {
......
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