Commit c665225a authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] Clean up kernel parameter array declaration

Declare the parameter array as an array, rather than a single entry.

This doesn't matter for code generation, but may be less likely to cause
problems down the line, since we're telling gcc more about the real
situation.
parent 38d5b085
...@@ -383,7 +383,7 @@ asmlinkage void __init start_kernel(void) ...@@ -383,7 +383,7 @@ asmlinkage void __init start_kernel(void)
{ {
char * command_line; char * command_line;
extern char saved_command_line[]; extern char saved_command_line[];
extern struct kernel_param __start___param, __stop___param; extern struct kernel_param __start___param[], __stop___param[];
/* /*
* Interrupts are still disabled. Do necessary setups, then * Interrupts are still disabled. Do necessary setups, then
* enable them * enable them
...@@ -403,8 +403,8 @@ asmlinkage void __init start_kernel(void) ...@@ -403,8 +403,8 @@ asmlinkage void __init start_kernel(void)
build_all_zonelists(); build_all_zonelists();
page_alloc_init(); page_alloc_init();
printk("Kernel command line: %s\n", saved_command_line); printk("Kernel command line: %s\n", saved_command_line);
parse_args("Booting kernel", command_line, &__start___param, parse_args("Booting kernel", command_line, __start___param,
&__stop___param - &__start___param, __stop___param - __start___param,
&unknown_bootoption); &unknown_bootoption);
trap_init(); trap_init();
rcu_init(); rcu_init();
......
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