Alchemy: kill useless #include's, #define's and extern's (take 3)
PATCH 1/1 Alchemy: kill useless #include's, #define's and extern's (take 3)
Go thru the Alchemy code and hunt down every unneeded #include, #define, and extern (some of which refer to already long dead functions).
---
Killed #include <au1xxx_dbdma.h> and couple #define's in arch/mips/au1000/pb1200/board_setup.c...
Please update the queued patch, hopefully the last time. :-)
arch/mips/au1000/common/cputable.c | 5 +---- arch/mips/au1000/common/dbdma.c | 6 ------ arch/mips/au1000/common/dbg_io.c | 1 - arch/mips/au1000/common/dma.c | 5 +---- arch/mips/au1000/common/gpio.c | 5 ----- arch/mips/au1000/common/irq.c | 1 - arch/mips/au1000/common/pci.c | 2 +- arch/mips/au1000/common/platform.c | 4 +--- arch/mips/au1000/common/power.c | 9 +-------- arch/mips/au1000/common/prom.c | 2 +- arch/mips/au1000/common/puts.c | 1 - arch/mips/au1000/common/reset.c | 8 +------- arch/mips/au1000/common/setup.c | 11 +---------- arch/mips/au1000/common/sleeper.S | 2 +- arch/mips/au1000/common/time.c | 8 -------- arch/mips/au1000/db1x00/board_setup.c | 15 ++------------- arch/mips/au1000/db1x00/init.c | 5 ----- arch/mips/au1000/db1x00/irqmap.c | 21 ++------------------- arch/mips/au1000/mtx-1/board_setup.c | 14 ++------------ arch/mips/au1000/mtx-1/init.c | 6 +----- arch/mips/au1000/mtx-1/irqmap.c | 19 +------------------ arch/mips/au1000/mtx-1/platform.c | 1 - arch/mips/au1000/pb1000/board_setup.c | 11 +---------- arch/mips/au1000/pb1000/init.c | 6 +----- arch/mips/au1000/pb1000/irqmap.c | 18 +----------------- arch/mips/au1000/pb1100/board_setup.c | 11 +---------- arch/mips/au1000/pb1100/init.c | 6 +----- arch/mips/au1000/pb1100/irqmap.c | 19 +------------------ arch/mips/au1000/pb1200/board_setup.c | 20 +------------------- arch/mips/au1000/pb1200/init.c | 6 +----- arch/mips/au1000/pb1200/irqmap.c | 20 ++------------------ arch/mips/au1000/pb1500/board_setup.c | 11 +---------- arch/mips/au1000/pb1500/init.c | 6 +----- arch/mips/au1000/pb1500/irqmap.c | 19 +------------------ arch/mips/au1000/pb1550/board_setup.c | 15 ++------------- arch/mips/au1000/pb1550/init.c | 6 +----- arch/mips/au1000/pb1550/irqmap.c | 19 +------------------ arch/mips/au1000/xxs1500/board_setup.c | 11 +---------- arch/mips/au1000/xxs1500/init.c | 6 +----- arch/mips/au1000/xxs1500/irqmap.c | 19 +------------------ arch/mips/pci/fixup-au1000.c | 5 +---- 41 files changed, 38 insertions(+), 347 deletions(-)
arch/mips/au1000/common/cputable.c +1 -4
@@ -11,10 +11,7 @@* as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ -#include <linux/string.h> -#include <linux/sched.h> -#include <linux/threads.h> -#include <linux/init.h> +#include <asm/mach-au1x00/au1000.h> struct cpu_spec * cur_cpu_spec[NR_CPUS ];
arch/mips/au1000/common/dbdma.c +0 -6
@@ -31,18 +31,12 @@*/ #include <linux/kernel.h> -#include <linux/errno.h> -#include <linux/sched.h> #include <linux/slab.h> #include <linux/spinlock.h> -#include <linux/string.h> -#include <linux/delay.h> #include <linux/interrupt.h> #include <linux/module.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1xxx_dbdma.h> -#include <asm/system.h> -#if defined(CONFIG_SOC_AU1550 ) || defined(CONFIG_SOC_AU1200 )
arch/mips/au1000/common/dbg_io.c +0 -1
@@ -1,5 +1,4 @@ -#include <asm/io.h> #include <asm/mach-au1x00/au1000.h> #ifdef CONFIG_KGDB
arch/mips/au1000/common/dma.c +1 -4
@@ -33,12 +33,9 @@#include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> -#include <linux/sched.h> #include <linux/spinlock.h> -#include <linux/string.h> -#include <linux/delay.h> #include <linux/interrupt.h> -#include <asm/system.h> +#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000_dma.h>
arch/mips/au1000/common/gpio.c +0 -5
@@ -27,13 +27,8 @@* others have a second one : GPIO2 */ -#include <linux/init.h> -#include <linux/io.h> -#include <linux/types.h> #include <linux/module.h> -#include <asm/addrspace.h> -#include <asm/mach-au1x00/au1000.h> #include <asm/gpio.h>
arch/mips/au1000/common/irq.c +0 -1
@@ -26,7 +26,6 @@*/ #include <linux/bitops.h> #include <linux/init.h> -#include <linux/io.h> #include <linux/interrupt.h> #include <linux/irq.h>
arch/mips/au1000/common/pci.c +1 -1
@@ -30,7 +30,7 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/types.h> +#include <linux/pci.h> #include <linux/kernel.h> #include <linux/init.h>
arch/mips/au1000/common/platform.c +1 -3
@@ -7,11 +7,9 @@* License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ -#include <linux/device.h> +#include <linux/platform_device.h> -#include <linux/kernel.h> #include <linux/init.h> -#include <linux/resource.h> #include <asm/mach-au1x00/au1xxx.h>
arch/mips/au1000/common/power.c +1 -8
@@ -29,17 +29,14 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> #include <linux/pm.h> #include <linux/pm_legacy.h> -#include <linux/slab.h> #include <linux/sysctl.h> #include <linux/jiffies.h> -#include <asm/string.h> #include <asm/uaccess.h> -#include <asm/io.h> -#include <asm/system.h> #include <asm/cacheflush.h> #include <asm/mach-au1x00/au1000.h>
@@ -54,10 +51,6 @@static void au1000_calibrate_delay (void ); -extern void set_au1x00_speed (unsigned int new_freq); -extern unsigned int get_au1x00_speed (void ); -extern unsigned long get_au1x00_uart_baud_base (void ); -extern void set_au1x00_uart_baud_base (unsigned long new_baud_base);extern unsigned long save_local_and_disable (int controller);extern void restore_local_and_enable (int controller,unsigned long mask);extern void local_enable_irq (unsigned int irq_nr);
arch/mips/au1000/common/prom.c +1 -1
@@ -33,8 +33,8 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/module.h> -#include <linux/kernel.h> #include <linux/init.h> #include <linux/string.h>
arch/mips/au1000/common/puts.c +0 -1
@@ -28,7 +28,6 @@* 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/types.h> #include <asm/mach-au1x00/au1000.h> #define SERIAL_BASE UART_BASE
arch/mips/au1000/common/reset.c +1 -7
@@ -27,13 +27,7 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/sched.h> -#include <linux/mm.h> -#include <asm/io.h> -#include <asm/pgtable.h> -#include <asm/processor.h> -#include <asm/reboot.h> -#include <asm/system.h> +#include <asm/mach-au1x00/au1000.h> extern int au_sleep (void );
arch/mips/au1000/common/setup.c +1 -10
@@ -25,21 +25,14 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> #include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/delay.h> -#include <linux/interrupt.h> #include <linux/module.h> #include <linux/pm.h> -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> #include <asm/mipsregs.h> #include <asm/reboot.h> -#include <asm/pgtable.h> #include <asm/time.h> #include <au1000.h>
@@ -49,8 +42,6 @@ extern void __init board_setup(void);extern void au1000_restart (char *);extern void au1000_halt (void );extern void au1000_power_off (void ); -extern void au1x_time_init (void ); -extern void au1x_timer_setup (struct irqaction *irq);extern void set_cpuspec (void );void __init plat_mem_setup (void )
arch/mips/au1000/common/sleeper.S +1 -1
@@ -9,9 +9,9 @@ * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */ + #include <asm/asm.h> #include <asm/mipsregs.h> -#include <asm/addrspace.h> #include <asm/regdef.h> #include <asm/stackframe.h>
arch/mips/au1000/common/time.c +0 -8
@@ -34,20 +34,12 @@#include <linux/types.h> #include <linux/init.h> -#include <linux/kernel_stat.h> -#include <linux/sched.h> #include <linux/spinlock.h> -#include <linux/hardirq.h> -#include <asm/compiler.h> #include <asm/mipsregs.h> #include <asm/time.h> -#include <asm/div64.h> #include <asm/mach-au1x00/au1000.h> -#include <linux/mc146818rtc.h> -#include <linux/timex.h> -static int no_au1xxx_32khz;extern int allow_au1k_wait;/* default off for CP0 Counter */
arch/mips/au1000/db1x00/board_setup.c +2 -13
@@ -27,20 +27,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> -#include <linux/mc146818rtc.h> -#include <linux/delay.h> - -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> +#include <asm/mach-au1x00/au1000.h> #include <asm/mach-db1x00/db1x00.h>
arch/mips/au1000/db1x00/init.c +0 -5
@@ -28,13 +28,8 @@*/ #include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/db1x00/irqmap.c +2 -19
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> - -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> +#include <asm/mach-au1x00/au1000.h> #ifdef CONFIG_MIPS_DB1500
arch/mips/au1000/mtx-1/board_setup.c +2 -12
@@ -28,19 +28,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> -#include <linux/delay.h> - -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> +#include <asm/mach-au1x00/au1000.h> extern int (*board_pci_idsel)(unsigned int devsel,int assert);
arch/mips/au1000/mtx-1/init.c +1 -5
@@ -28,14 +28,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/string.h> +#include <linux/kernel.h> -#include <linux/sched.h> #include <linux/init.h> -#include <linux/mm.h> -#include <linux/bootmem.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/mtx-1/irqmap.c +1 -18
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> char irq_tab_alchemy[][5 ]__initdata = {
arch/mips/au1000/mtx-1/platform.c +0 -1
@@ -19,7 +19,6 @@*/ #include <linux/init.h> -#include <linux/types.h> #include <linux/platform_device.h> #include <linux/leds.h> #include <linux/gpio_keys.h>
arch/mips/au1000/pb1000/board_setup.c +1 -10
@@ -23,19 +23,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> #include <linux/delay.h> -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-pb1x00/pb1000.h>
arch/mips/au1000/pb1000/init.c +1 -5
@@ -26,14 +26,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/pb1000/irqmap.c +1 -17
@@ -25,26 +25,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> #include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> struct au1xxx_irqmap __initdata au1xxx_irq_map[] = {
arch/mips/au1000/pb1100/board_setup.c +1 -10
@@ -23,19 +23,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> #include <linux/delay.h> -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-pb1x00/pb1100.h>
arch/mips/au1000/pb1100/init.c +1 -5
@@ -27,14 +27,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/pb1100/irqmap.c +1 -18
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> struct au1xxx_irqmap __initdata au1xxx_irq_map[] = {
arch/mips/au1000/pb1200/board_setup.c +1 -19
@@ -23,27 +23,11 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> #include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> -#include <linux/mc146818rtc.h> -#include <linux/delay.h> - -#if defined(CONFIG_BLK_DEV_IDE_AU1XXX ) -#include <linux/ide.h> -#endif - -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> #include <au1000.h> -#include <au1xxx_dbdma.h> #include <prom.h> #ifdef CONFIG_MIPS_PB1200
@@ -52,8 +36,6 @@#ifdef CONFIG_MIPS_DB1200 #include <asm/mach-db1x00/db1200.h> -#define PB1200_ETH_INT DB1200_ETH_INT -#define PB1200_IDE_INT DB1200_IDE_INT#endif extern void _board_init_irq (void );
arch/mips/au1000/pb1200/init.c +1 -5
@@ -27,14 +27,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/pb1200/irqmap.c +2 -18
@@ -22,26 +22,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> #include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> - -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> +#include <asm/mach-au1x00/au1000.h> #ifdef CONFIG_MIPS_PB1200
arch/mips/au1000/pb1500/board_setup.c +1 -10
@@ -23,19 +23,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> #include <linux/delay.h> -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-pb1x00/pb1500.h>
arch/mips/au1000/pb1500/init.c +1 -5
@@ -27,14 +27,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/pb1500/irqmap.c +1 -18
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> char irq_tab_alchemy[][5 ]__initdata = {
arch/mips/au1000/pb1550/board_setup.c +2 -13
@@ -27,20 +27,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> -#include <linux/mc146818rtc.h> -#include <linux/delay.h> - -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> +#include <asm/mach-au1x00/au1000.h> #include <asm/mach-pb1x00/pb1550.h>
arch/mips/au1000/pb1550/init.c +1 -5
@@ -27,14 +27,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/pb1550/irqmap.c +1 -18
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> char irq_tab_alchemy[][5 ]__initdata = {
arch/mips/au1000/xxs1500/board_setup.c +1 -10
@@ -23,19 +23,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/sched.h> -#include <linux/ioport.h> -#include <linux/mm.h> -#include <linux/console.h> #include <linux/delay.h> -#include <asm/cpu.h> -#include <asm/bootinfo.h> -#include <asm/irq.h> -#include <asm/mipsregs.h> -#include <asm/reboot.h> -#include <asm/pgtable.h> #include <asm/mach-au1x00/au1000.h> void board_reset (void )
arch/mips/au1000/xxs1500/init.c +1 -5
@@ -26,14 +26,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <linux/mm.h> -#include <linux/sched.h> -#include <linux/bootmem.h> -#include <linux/string.h> #include <linux/kernel.h> -#include <asm/addrspace.h> #include <asm/bootinfo.h> #include <prom.h>
arch/mips/au1000/xxs1500/irqmap.c +1 -18
@@ -25,26 +25,9 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/errno.h> +#include <linux/init.h> -#include <linux/irq.h> -#include <linux/kernel_stat.h> -#include <linux/module.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/types.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/timex.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/delay.h> -#include <linux/bitops.h> -#include <asm/bootinfo.h> -#include <asm/io.h> -#include <asm/mipsregs.h> -#include <asm/system.h> #include <asm/mach-au1x00/au1000.h> struct au1xxx_irqmap __initdata au1xxx_irq_map[] = {
arch/mips/pci/fixup-au1000.c +1 -4
@@ -26,13 +26,10 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/types.h> +#include <linux/pci.h> -#include <linux/kernel.h> #include <linux/init.h> -#include <asm/mach-au1x00/au1000.h> -extern char irq_tab_alchemy[][5 ];int __init pcibios_map_irq (const struct pci_dev *dev,u8 slot,u8 pin)
Quoted 10 lines · Sergei Shtylyov
Go thru the Alchemy code and hunt down every unneeded #include, #define, and extern (some of which refer to already long dead functions).
Signed-off-by Sergei Shtylyov <[email protected]>---
Killed #include <au1xxx_dbdma.h> and couple #define's inarch/mips/au1000/pb1200/board_setup.c...Please update the queued patch, hopefully the last time. :-)
Done,
Ralf
Quoted 5 lines · Ralf Baechle
Quoted 4 lines
Go thru the Alchemy code and hunt down every unneeded #include, #define, and extern (some of which refer to already long dead functions).
Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 7 lines
Quoted 5 lines
---
Killed #include <au1xxx_dbdma.h> and couple #define's inarch/mips/au1000/pb1200/board_setup.c...Please update the queued patch, hopefully the last time. :-)
Done,
Thanks. But actually, summary and description also did change -- but not
in the queue. :-)
Quoted 1 line
Ralf
WBR, Sergei
Quoted 6 lines · Sergei Shtylyov
Quoted 3 lines
Quoted 1 line
Please update the queued patch, hopefully the last time. :-)
Done,
Thanks. But actually, summary and description also did change -- but not
in the queue. :-)
Fixed.
Ralf
Hi Sergei,
Quoted 2 lines · Sergei Shtylyov
Go thru the Alchemy code and hunt down every unneeded #include, #define, and extern (some of which refer to already long dead functions).
that's an impressive patch! Did you created it manually or do you have a script which does the checks for you?
I have a program which would probably profit from it as well.
Jens
Quoted 5 lines · Jens Seidel
Quoted 2 lines
Go thru the Alchemy code and hunt down every unneeded #include, #define, and extern (some of which refer to already long dead functions).
that's an impressive patch! Did you created it manually or do you have a script which does the checks for you?
All hand work. :-)
WBR, Sergei