diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2007-02-12 03:54:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:39 -0500 |
commit | 7a3a06d0e158fc82a6bf13e18439285c7791d2b8 (patch) | |
tree | 0418ae2c23ee398e3926fe2f5ed3290aba883fff | |
parent | d3e9cceafd9c886561f602bcdcb03efd96e187ab (diff) |
[PATCH] Dynamic kernel command-line: fixups
Remove in-source externs, linux/init.h is included in all cases.
This is a fixups for "Dynamic kernel command-line" patch.
It also includes some uml __init fixups so that we can __initdata also its
command_line.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/ia64/kernel/efi.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/sal.c | 2 | ||||
-rw-r--r-- | arch/parisc/mm/init.c | 1 | ||||
-rw-r--r-- | arch/um/include/user_util.h | 2 | ||||
-rw-r--r-- | arch/um/kernel/um_arch.c | 6 | ||||
-rw-r--r-- | arch/x86_64/kernel/head64.c | 2 |
6 files changed, 3 insertions, 12 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index b12d6d13202a..772ba6fe110f 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c | |||
@@ -405,8 +405,6 @@ efi_map_pal_code (void) | |||
405 | ia64_srlz_i(); | 405 | ia64_srlz_i(); |
406 | } | 406 | } |
407 | 407 | ||
408 | extern char __initdata boot_command_line[]; | ||
409 | |||
410 | void __init | 408 | void __init |
411 | efi_init (void) | 409 | efi_init (void) |
412 | { | 410 | { |
diff --git a/arch/ia64/kernel/sal.c b/arch/ia64/kernel/sal.c index 831d57f257db..37c876f95dba 100644 --- a/arch/ia64/kernel/sal.c +++ b/arch/ia64/kernel/sal.c | |||
@@ -190,8 +190,6 @@ sal_desc_ap_wakeup (void *p) | |||
190 | } | 190 | } |
191 | } | 191 | } |
192 | 192 | ||
193 | extern char __initdata boot_command_line[]; | ||
194 | |||
195 | static void __init | 193 | static void __init |
196 | chk_nointroute_opt(void) | 194 | chk_nointroute_opt(void) |
197 | { | 195 | { |
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index f355fb591e7f..12117db0043b 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c | |||
@@ -77,7 +77,6 @@ static void __init mem_limit_func(void) | |||
77 | { | 77 | { |
78 | char *cp, *end; | 78 | char *cp, *end; |
79 | unsigned long limit; | 79 | unsigned long limit; |
80 | extern char __initdata boot_command_line[]; | ||
81 | 80 | ||
82 | /* We need this before __setup() functions are called */ | 81 | /* We need this before __setup() functions are called */ |
83 | 82 | ||
diff --git a/arch/um/include/user_util.h b/arch/um/include/user_util.h index 0f63003a2a35..023575f67343 100644 --- a/arch/um/include/user_util.h +++ b/arch/um/include/user_util.h | |||
@@ -38,8 +38,6 @@ extern unsigned long long highmem; | |||
38 | 38 | ||
39 | extern char host_info[]; | 39 | extern char host_info[]; |
40 | 40 | ||
41 | extern char __initdata boot_command_line[]; | ||
42 | |||
43 | extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end; | 41 | extern unsigned long _stext, _etext, _sdata, _edata, __bss_start, _end; |
44 | extern unsigned long _unprotected_end; | 42 | extern unsigned long _unprotected_end; |
45 | extern unsigned long brk_start; | 43 | extern unsigned long brk_start; |
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 668eba2d2e83..89c6dba731f8 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c | |||
@@ -43,9 +43,9 @@ | |||
43 | #define DEFAULT_COMMAND_LINE "root=98:0" | 43 | #define DEFAULT_COMMAND_LINE "root=98:0" |
44 | 44 | ||
45 | /* Changed in linux_main and setup_arch, which run before SMP is started */ | 45 | /* Changed in linux_main and setup_arch, which run before SMP is started */ |
46 | static char command_line[COMMAND_LINE_SIZE] = { 0 }; | 46 | static char __initdata command_line[COMMAND_LINE_SIZE] = { 0 }; |
47 | 47 | ||
48 | static void add_arg(char *arg) | 48 | static void __init add_arg(char *arg) |
49 | { | 49 | { |
50 | if (strlen(command_line) + strlen(arg) + 1 > COMMAND_LINE_SIZE) { | 50 | if (strlen(command_line) + strlen(arg) + 1 > COMMAND_LINE_SIZE) { |
51 | printf("add_arg: Too many command line arguments!\n"); | 51 | printf("add_arg: Too many command line arguments!\n"); |
@@ -330,7 +330,7 @@ EXPORT_SYMBOL(end_iomem); | |||
330 | 330 | ||
331 | extern char __binary_start; | 331 | extern char __binary_start; |
332 | 332 | ||
333 | int linux_main(int argc, char **argv) | 333 | int __init linux_main(int argc, char **argv) |
334 | { | 334 | { |
335 | unsigned long avail, diff; | 335 | unsigned long avail, diff; |
336 | unsigned long virtmem_size, max_physmem; | 336 | unsigned long virtmem_size, max_physmem; |
diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c index be4bfb43d6dd..5f197b0a330a 100644 --- a/arch/x86_64/kernel/head64.c +++ b/arch/x86_64/kernel/head64.c | |||
@@ -34,8 +34,6 @@ static void __init clear_bss(void) | |||
34 | #define OLD_CL_BASE_ADDR 0x90000 | 34 | #define OLD_CL_BASE_ADDR 0x90000 |
35 | #define OLD_CL_OFFSET 0x90022 | 35 | #define OLD_CL_OFFSET 0x90022 |
36 | 36 | ||
37 | extern char __initdata boot_command_line[]; | ||
38 | |||
39 | static void __init copy_bootdata(char *real_mode_data) | 37 | static void __init copy_bootdata(char *real_mode_data) |
40 | { | 38 | { |
41 | int new_data; | 39 | int new_data; |