Winners use grep(1) ;-)
guess the old tools still work the best ;-)
Include/linux/initrd.h.
okay, i've attached a new version of the patch. just a few questions. would it make sense to lift __rd_start, __rd_end into initrd.h? also would it make sense to add:
#ifdef __INITRD_H
etc stuff to the initrd.h?
peter
Index: arch/mips/pci/pci-sb1250.c =================================================================== RCS file: /home/cvs/linux/arch/mips/pci/pci-sb1250.c,v retrieving revision 1.9 diff -u -r1.9 pci-sb1250.c --- arch/mips/pci/pci-sb1250.c 26 Aug 2004 20:18:00 -0000 1.9 +++ arch/mips/pci/pci-sb1250.c 10 Sep 2004 18:01:29 -0000 @@ -37,6 +37,7 @@ #include <linux/init.h> #include <linux/mm.h> #include <linux/console.h> +#include <linux/tty.h> #include <asm/io.h> Index: arch/mips/sibyte/sb1250/prom.c =================================================================== RCS file: /home/cvs/linux/arch/mips/sibyte/sb1250/prom.c,v retrieving revision 1.9 diff -u -r1.9 prom.c --- arch/mips/sibyte/sb1250/prom.c 28 Jan 2004 22:16:39 -0000 1.9 +++ arch/mips/sibyte/sb1250/prom.c 10 Sep 2004 18:01:29 -0000 @@ -23,6 +23,7 @@ #include <linux/blkdev.h> #include <linux/bootmem.h> #include <linux/smp.h> +#include <linux/initrd.h> #include <asm/bootinfo.h> #include <asm/reboot.h> Index: arch/mips/sibyte/swarm/setup.c =================================================================== RCS file: /home/cvs/linux/arch/mips/sibyte/swarm/setup.c,v retrieving revision 1.31 diff -u -r1.31 setup.c --- arch/mips/sibyte/swarm/setup.c 26 Aug 2004 20:18:00 -0000 1.31 +++ arch/mips/sibyte/swarm/setup.c 10 Sep 2004 18:01:29 -0000 @@ -27,6 +27,8 @@ #include <linux/bootmem.h> #include <linux/blkdev.h> #include <linux/init.h> +#include <linux/tty.h> +#include <linux/initrd.h> #include <asm/irq.h> #include <asm/io.h> @@ -50,6 +52,10 @@ extern int m41t81_set_time(unsigned long); extern unsigned long m41t81_get_time(void); +#ifdef CONFIG_BLK_DEV_INITRD +extern void * __rd_start, * __rd_end; +#endif + const char *get_system_type(void) { return "SiByte " SIBYTE_BOARD_NAME;