diff options
| author | Roman Zippel <zippel@linux-m68k.org> | 2003-06-15 05:21:48 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-15 05:21:48 -0700 |
| commit | c665225afb713f48d57c737eb8799dcbde65bb9f (patch) | |
| tree | e3812aae82a900e2c1dc9f22e51f2fe9fa795cf6 /init | |
| parent | 38d5b085d2a0d36ece55bcede84be9ae88cd4481 (diff) | |
[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.
Diffstat (limited to 'init')
| -rw-r--r-- | init/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c index 4774a4bee2fb..e6af35275475 100644 --- a/init/main.c +++ b/init/main.c @@ -383,7 +383,7 @@ asmlinkage void __init start_kernel(void) { char * 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 * enable them @@ -403,8 +403,8 @@ asmlinkage void __init start_kernel(void) build_all_zonelists(); page_alloc_init(); printk("Kernel command line: %s\n", saved_command_line); - parse_args("Booting kernel", command_line, &__start___param, - &__stop___param - &__start___param, + parse_args("Booting kernel", command_line, __start___param, + __stop___param - __start___param, &unknown_bootoption); trap_init(); rcu_init(); |
