Skip to content

Commit 4fb7d98

Browse files
author
Al Viro
committed
[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>
1 parent 164006d commit 4fb7d98

9 files changed

Lines changed: 0 additions & 53 deletions

File tree

‎arch/cris/kernel/setup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
/*
2525
* Setup options
2626
*/
27-
struct drive_info_struct { char dummy[32]; } drive_info;
2827
struct screen_info screen_info;
2928

3029
extern int root_mountflags;

‎arch/ia64/dig/setup.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@
2525
#include <asm/machvec.h>
2626
#include <asm/system.h>
2727

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-
3828
void __init
3929
dig_setup (char **cmdline_p)
4030
{

‎arch/ia64/sn/kernel/setup.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,6 @@ struct screen_info sn_screen_info = {
124124
.orig_video_points = 16
125125
};
126126

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-
141127
/*
142128
* This routine can only be used during init, since
143129
* smp_boot_data is an init data structure.

‎arch/m32r/kernel/m32r_ksyms.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
#include <asm/irq.h>
1919
#include <asm/tlbflush.h>
2020

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-
2621
/* platform dependent support */
2722
EXPORT_SYMBOL(boot_cpu_data);
2823
EXPORT_SYMBOL(dump_fpu);

‎arch/m32r/kernel/setup.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
extern void init_mmu(void);
3838
#endif
3939

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-
4640
extern char _end[];
4741

4842
/*

‎arch/powerpc/platforms/powermac/setup.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@
8282

8383
#undef SHOW_GATWICK_IRQS
8484

85-
unsigned char drive_info;
86-
8785
int ppc_override_l2cr = 0;
8886
int ppc_override_l2cr_value;
8987
int has_l2cache = 0;

‎arch/sh64/kernel/sh_ksyms.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131

3232
extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
3333

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-
4234
/* platform dependent support */
4335
EXPORT_SYMBOL(dump_fpu);
4436
EXPORT_SYMBOL(iounmap);

‎arch/x86_64/kernel/setup.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ unsigned long saved_video_mode;
9494
/*
9595
* Setup options
9696
*/
97-
struct drive_info_struct { char dummy[32]; } drive_info;
9897
struct screen_info screen_info;
9998
struct sys_desc_table_struct {
10099
unsigned short length;
@@ -572,7 +571,6 @@ void __init setup_arch(char **cmdline_p)
572571
unsigned long kernel_end;
573572

574573
ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV);
575-
drive_info = DRIVE_INFO;
576574
screen_info = SCREEN_INFO;
577575
edid_info = EDID_INFO;
578576
saved_video_mode = SAVED_VIDEO_MODE;

‎arch/x86_64/kernel/x8664_ksyms.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ extern void __write_lock_failed(rwlock_t *rw);
3939
extern void __read_lock_failed(rwlock_t *rw);
4040
#endif
4141

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-
4742
/* platform dependent support */
4843
EXPORT_SYMBOL(boot_cpu_data);
4944
//EXPORT_SYMBOL(dump_fpu);

0 commit comments

Comments
 (0)