diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2005-12-21 13:24:46 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-07 20:56:47 -0500 |
commit | 4fb7d9827e89cc0a4ad2fde32ffa08f77cc0b7fe (patch) | |
tree | d10d90be7cb8fef4d6358f52d6a6fe6b59d2e6af | |
parent | 164006da316a22eaaa9fbe36f835a01606436c66 (diff) |
[PATCH] drive_info removal outside of arch/i386
drive_info is used only by hd.c and that happens under #ifdef __i386__.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/cris/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/ia64/dig/setup.c | 10 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/setup.c | 14 | ||||
-rw-r--r-- | arch/m32r/kernel/m32r_ksyms.c | 5 | ||||
-rw-r--r-- | arch/m32r/kernel/setup.c | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 2 | ||||
-rw-r--r-- | arch/sh64/kernel/sh_ksyms.c | 8 | ||||
-rw-r--r-- | arch/x86_64/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/x86_64/kernel/x8664_ksyms.c | 5 |
9 files changed, 0 insertions, 53 deletions
diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c index d11206e467ab..1ba57efff60d 100644 --- a/arch/cris/kernel/setup.c +++ b/arch/cris/kernel/setup.c | |||
@@ -24,7 +24,6 @@ | |||
24 | /* | 24 | /* |
25 | * Setup options | 25 | * Setup options |
26 | */ | 26 | */ |
27 | struct drive_info_struct { char dummy[32]; } drive_info; | ||
28 | struct screen_info screen_info; | 27 | struct screen_info screen_info; |
29 | 28 | ||
30 | extern int root_mountflags; | 29 | extern int root_mountflags; |
diff --git a/arch/ia64/dig/setup.c b/arch/ia64/dig/setup.c index d58003f1ad02..c9104bfff667 100644 --- a/arch/ia64/dig/setup.c +++ b/arch/ia64/dig/setup.c | |||
@@ -25,16 +25,6 @@ | |||
25 | #include <asm/machvec.h> | 25 | #include <asm/machvec.h> |
26 | #include <asm/system.h> | 26 | #include <asm/system.h> |
27 | 27 | ||
28 | /* | ||
29 | * This is here so we can use the CMOS detection in ide-probe.c to | ||
30 | * determine what drives are present. In theory, we don't need this | ||
31 | * as the auto-detection could be done via ide-probe.c:do_probe() but | ||
32 | * in practice that would be much slower, which is painful when | ||
33 | * running in the simulator. Note that passing zeroes in DRIVE_INFO | ||
34 | * is sufficient (the IDE driver will autodetect the drive geometry). | ||
35 | */ | ||
36 | char drive_info[4*16]; | ||
37 | |||
38 | void __init | 28 | void __init |
39 | dig_setup (char **cmdline_p) | 29 | dig_setup (char **cmdline_p) |
40 | { | 30 | { |
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c index ee36bff93c30..aac1ba32c5e5 100644 --- a/arch/ia64/sn/kernel/setup.c +++ b/arch/ia64/sn/kernel/setup.c | |||
@@ -125,20 +125,6 @@ struct screen_info sn_screen_info = { | |||
125 | }; | 125 | }; |
126 | 126 | ||
127 | /* | 127 | /* |
128 | * This is here so we can use the CMOS detection in ide-probe.c to | ||
129 | * determine what drives are present. In theory, we don't need this | ||
130 | * as the auto-detection could be done via ide-probe.c:do_probe() but | ||
131 | * in practice that would be much slower, which is painful when | ||
132 | * running in the simulator. Note that passing zeroes in DRIVE_INFO | ||
133 | * is sufficient (the IDE driver will autodetect the drive geometry). | ||
134 | */ | ||
135 | #ifdef CONFIG_IA64_GENERIC | ||
136 | extern char drive_info[4 * 16]; | ||
137 | #else | ||
138 | char drive_info[4 * 16]; | ||
139 | #endif | ||
140 | |||
141 | /* | ||
142 | * This routine can only be used during init, since | 128 | * This routine can only be used during init, since |
143 | * smp_boot_data is an init data structure. | 129 | * smp_boot_data is an init data structure. |
144 | * We have to use smp_boot_data.cpu_phys_id to find | 130 | * We have to use smp_boot_data.cpu_phys_id to find |
diff --git a/arch/m32r/kernel/m32r_ksyms.c b/arch/m32r/kernel/m32r_ksyms.c index dbc8a392105f..be8b711367ec 100644 --- a/arch/m32r/kernel/m32r_ksyms.c +++ b/arch/m32r/kernel/m32r_ksyms.c | |||
@@ -18,11 +18,6 @@ | |||
18 | #include <asm/irq.h> | 18 | #include <asm/irq.h> |
19 | #include <asm/tlbflush.h> | 19 | #include <asm/tlbflush.h> |
20 | 20 | ||
21 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE) | ||
22 | extern struct drive_info_struct drive_info; | ||
23 | EXPORT_SYMBOL(drive_info); | ||
24 | #endif | ||
25 | |||
26 | /* platform dependent support */ | 21 | /* platform dependent support */ |
27 | EXPORT_SYMBOL(boot_cpu_data); | 22 | EXPORT_SYMBOL(boot_cpu_data); |
28 | EXPORT_SYMBOL(dump_fpu); | 23 | EXPORT_SYMBOL(dump_fpu); |
diff --git a/arch/m32r/kernel/setup.c b/arch/m32r/kernel/setup.c index c2e4dccf0112..d742037a7ccb 100644 --- a/arch/m32r/kernel/setup.c +++ b/arch/m32r/kernel/setup.c | |||
@@ -37,12 +37,6 @@ | |||
37 | extern void init_mmu(void); | 37 | extern void init_mmu(void); |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) \ | ||
41 | || defined(CONFIG_BLK_DEV_IDE_MODULE) \ | ||
42 | || defined(CONFIG_BLK_DEV_HD_MODULE) | ||
43 | struct drive_info_struct { char dummy[32]; } drive_info; | ||
44 | #endif | ||
45 | |||
46 | extern char _end[]; | 40 | extern char _end[]; |
47 | 41 | ||
48 | /* | 42 | /* |
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 89c4c3636161..1955462f4082 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -82,8 +82,6 @@ | |||
82 | 82 | ||
83 | #undef SHOW_GATWICK_IRQS | 83 | #undef SHOW_GATWICK_IRQS |
84 | 84 | ||
85 | unsigned char drive_info; | ||
86 | |||
87 | int ppc_override_l2cr = 0; | 85 | int ppc_override_l2cr = 0; |
88 | int ppc_override_l2cr_value; | 86 | int ppc_override_l2cr_value; |
89 | int has_l2cache = 0; | 87 | int has_l2cache = 0; |
diff --git a/arch/sh64/kernel/sh_ksyms.c b/arch/sh64/kernel/sh_ksyms.c index 472b450e61be..de29c45f23a7 100644 --- a/arch/sh64/kernel/sh_ksyms.c +++ b/arch/sh64/kernel/sh_ksyms.c | |||
@@ -31,14 +31,6 @@ | |||
31 | 31 | ||
32 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | 32 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); |
33 | 33 | ||
34 | #if 0 | ||
35 | /* Not yet - there's no declaration of drive_info anywhere. */ | ||
36 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE) | ||
37 | extern struct drive_info_struct drive_info; | ||
38 | EXPORT_SYMBOL(drive_info); | ||
39 | #endif | ||
40 | #endif | ||
41 | |||
42 | /* platform dependent support */ | 34 | /* platform dependent support */ |
43 | EXPORT_SYMBOL(dump_fpu); | 35 | EXPORT_SYMBOL(dump_fpu); |
44 | EXPORT_SYMBOL(iounmap); | 36 | EXPORT_SYMBOL(iounmap); |
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 363db5a003df..9435ab7d6fb8 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -94,7 +94,6 @@ unsigned long saved_video_mode; | |||
94 | /* | 94 | /* |
95 | * Setup options | 95 | * Setup options |
96 | */ | 96 | */ |
97 | struct drive_info_struct { char dummy[32]; } drive_info; | ||
98 | struct screen_info screen_info; | 97 | struct screen_info screen_info; |
99 | struct sys_desc_table_struct { | 98 | struct sys_desc_table_struct { |
100 | unsigned short length; | 99 | unsigned short length; |
@@ -572,7 +571,6 @@ void __init setup_arch(char **cmdline_p) | |||
572 | unsigned long kernel_end; | 571 | unsigned long kernel_end; |
573 | 572 | ||
574 | ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); | 573 | ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); |
575 | drive_info = DRIVE_INFO; | ||
576 | screen_info = SCREEN_INFO; | 574 | screen_info = SCREEN_INFO; |
577 | edid_info = EDID_INFO; | 575 | edid_info = EDID_INFO; |
578 | saved_video_mode = SAVED_VIDEO_MODE; | 576 | saved_video_mode = SAVED_VIDEO_MODE; |
diff --git a/arch/x86_64/kernel/x8664_ksyms.c b/arch/x86_64/kernel/x8664_ksyms.c index b614d54d2ae4..3496abc8d372 100644 --- a/arch/x86_64/kernel/x8664_ksyms.c +++ b/arch/x86_64/kernel/x8664_ksyms.c | |||
@@ -39,11 +39,6 @@ extern void __write_lock_failed(rwlock_t *rw); | |||
39 | extern void __read_lock_failed(rwlock_t *rw); | 39 | extern void __read_lock_failed(rwlock_t *rw); |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE) | ||
43 | extern struct drive_info_struct drive_info; | ||
44 | EXPORT_SYMBOL(drive_info); | ||
45 | #endif | ||
46 | |||
47 | /* platform dependent support */ | 42 | /* platform dependent support */ |
48 | EXPORT_SYMBOL(boot_cpu_data); | 43 | EXPORT_SYMBOL(boot_cpu_data); |
49 | //EXPORT_SYMBOL(dump_fpu); | 44 | //EXPORT_SYMBOL(dump_fpu); |