kill aux_device_present (fwd)
Subsystems (3)
PATCH 1/1 kill aux_device_present (fwd)
The patch forwarded below (slghtly adapted to an unrelated context change) still applies and compiles against 2.6.11-rc1-mm1.
Please apply.
----- Forwarded message from Adrian Bunk <[email protected]> -----
Date: Sat, 11 Dec 2004 23:00:12 +0100
From: Adrian Bunk <[email protected]>
To: [email protected]
Subject: [2.6 patch] kill aux_device_present
There's no reason for keeping a write-only variable.
diffstat output:
arch/alpha/kernel/setup.c | 2 -- arch/arm/kernel/setup.c | 2 -- arch/arm26/kernel/setup.c | 1 - arch/cris/kernel/setup.c | 2 -- arch/i386/kernel/setup.c | 3 --- arch/ia64/kernel/setup.c | 2 -- arch/ppc/kernel/setup.c | 1 - arch/sh/kernel/setup.c | 1 - arch/sh64/kernel/setup.c | 4 ---- arch/x86_64/kernel/setup.c | 3 --- 10 files changed, 21 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
arch/ppc/kernel/setup.c renamed from arch/ppc/kernel/setup.c.old +0 -1
@@ -55,7 +55,6 @@extern void power4_idle (void );extern boot_infos_t *boot_infos; -unsigned char aux_device_present;struct ide_machdep_calls ppc_ide_md;char *sysmap;unsigned long sysmap_size;
arch/arm/kernel/setup.c renamed from arch/arm/kernel/setup.c.old +0 -2
@@ -91,8 +91,6 @@struct cpu_cache_fns cpu_cache;#endif -unsigned char aux_device_present; -char elf_platform[ELF_PLATFORM_SIZE ];EXPORT_SYMBOL (elf_platform);
arch/sh/kernel/setup.c renamed from arch/sh/kernel/setup.c.old +0 -1
@@ -43,7 +43,6 @@*/ struct sh_cpuinfo boot_cpu_data = {CPU_SH_NONE ,0 ,10000000 , };struct screen_info screen_info; -unsigned char aux_device_present =0xaa ;#if defined(CONFIG_SH_UNKNOWN )struct sh_machine_vector sh_mv;
arch/cris/kernel/setup.c renamed from arch/cris/kernel/setup.c.old +0 -2
@@ -26,8 +26,6 @@struct drive_info_struct {char dummy[32 ]; } drive_info;struct screen_info screen_info; -unsigned char aux_device_present; -extern int root_mountflags;extern char _etext, _edata, _end;
arch/arm26/kernel/setup.c renamed from arch/arm26/kernel/setup.c.old +0 -1
@@ -74,7 +74,6 @@struct processor processor; -unsigned char aux_device_present;char elf_platform[ELF_PLATFORM_SIZE ];unsigned long phys_initrd_start__initdata =0 ;
arch/ia64/kernel/setup.c renamed from arch/ia64/kernel/setup.c.old +0 -2
@@ -75,8 +75,6 @@EXPORT_SYMBOL (io_space);unsigned int num_io_spaces; -unsigned char aux_device_present =0xaa ;/* XXX remove this when legacy I/O is gone */ -/* * The merge_mask variable needs to be set to (max(iommu_page_size(iommu)) - 1). This * mask specifies a mask of address bits that must be 0 in order for two buffers to be
arch/alpha/kernel/setup.c renamed from arch/alpha/kernel/setup.c.old +0 -2
@@ -110,8 +110,6 @@int alpha_using_srm;#endif -unsigned char aux_device_present =0xaa ; -#define N (a) (sizeof(a)/sizeof(a[0])) static struct alpha_machine_vector *get_sysvec(unsigned long, unsigned long,
arch/sh64/kernel/setup.c renamed from arch/sh64/kernel/setup.c.old +0 -4
@@ -61,10 +61,6 @@struct screen_info screen_info; -/* On a PC this would be initialised as a result of the BIOS detecting the -* mouse. */ -unsigned char aux_device_present =0xaa ; -#ifdef CONFIG_BLK_DEV_RAM extern int rd_doload;/* 1 = load ramdisk, 0 = don't load */ extern int rd_prompt;/* 1 = prompt for ramdisk, 0 = don't prompt */
arch/x86_64/kernel/setup.c renamed from arch/x86_64/kernel/setup.c.old +0 -3
@@ -100,8 +100,6 @@struct edid_info edid_info;struct e820map e820; -unsigned char aux_device_present; -extern int root_mountflags;extern char _text, _etext, _edata, _end;
@@ -452,7 +450,6 @@ drive_info =DRIVE_INFO ; screen_info =SCREEN_INFO ; edid_info =EDID_INFO ; - aux_device_present =AUX_DEVICE_INFO ; saved_video_mode =SAVED_VIDEO_MODE ;#ifdef CONFIG_BLK_DEV_RAM
arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c.old +0 -3
@@ -120,8 +120,6 @@struct ist_info ist_info;struct e820map e820; -unsigned char aux_device_present; -extern void early_cpu_init (void );extern void dmi_scan_machine (void );extern void generic_apic_probe (char *);
@@ -1368,7 +1366,6 @@ machine_submodel_id =SYS_DESC_TABLE .table[1 ]; BIOS_revision =SYS_DESC_TABLE .table[2 ]; } - aux_device_present =AUX_DEVICE_INFO ; bootloader_type =LOADER_TYPE ;#ifdef CONFIG_BLK_DEV_RAM