2.4.13-pre3: problems and patches
pre3:
- prepare-for-Alan: move drivers/i2o into drivers/message/i2o
Well, moving it is not enough, some relative references need to be fixed. Attached is the trivial patch. [i2o_scsi.patch]
Other fun bits:
fs/udf has a function type dissagreement. It is not critical for me (int vs long) so I selected 'long' and fixed the header. [udfdecl.patch]
Of course, one still needs the old patch for the struct field name changes. [i2o.patch]
To build a full pre3 one also needs other patches off the list
sonypi
cpqfcTSinit
These may not be the "proper" patches but they do the job for now.
And that is all folks.
--
Eyal Lebedinsky ([email protected]) <http://samba.anu.edu.au/eyal/>
drivers/message/i2o/i2o_pci.c renamed from drivers/message/i2o/i2o_pci.c.orig +1 -1
@@ -162,7 +162,7 @@ c->bus.pci.queue_buggy =0 ; c->bus.pci.dpt =0 ; c->bus.pci.short_req =0 ; - c->bus.pci.pdev = dev; + c->pdev = dev; c->irq_mask = (volatile u32 *)(mem+0x34 ); c->post_port = (volatile u32 *)(mem+0x40 );
drivers/message/i2o/i2o_core.c renamed from drivers/message/i2o/i2o_core.c.orig +4 -4
@@ -1924,12 +1924,12 @@ if(iop->status_block->current_mem_size < iop->status_block->desired_mem_size) { struct resource *res = &iop->mem_resource; - res->name = iop->bus.pci.pdev->bus->name; + res->name = iop->pdev->bus->name; res->flags = IORESOURCE_MEM; res->start = 0; res->end = 0; printk("%s: requires private memory resources.\n", iop->name); - root = pci_find_parent_resource(iop->bus.pci.pdev, res); + root = pci_find_parent_resource(iop->pdev, res); if(root==NULL) printk("Can't find parent resource!\n"); if(root && allocate_resource(root, res,
@@ -1950,12 +1950,12 @@ if(iop->status_block->current_io_size < iop->status_block->desired_io_size) { struct resource *res = &iop->io_resource; - res->name = iop->bus.pci.pdev->bus->name; + res->name = iop->pdev->bus->name; res->flags = IORESOURCE_IO; res->start = 0; res->end = 0; printk("%s: requires private memory resources.\n", iop->name); - root = pci_find_parent_resource(iop->bus.pci.pdev, res); + root = pci_find_parent_resource(iop->pdev, res); if(root==NULL) printk("Can't find parent resource!\n"); if(root && allocate_resource(root, res,
include/linux/i2o.h renamed from include/linux/i2o.h.orig +1 -0
@@ -30,6 +30,7 @@#include <asm/semaphore.h> /* Needed for MUTEX init macros */ #include <linux/config.h> +#include <linux/ioport.h> #include <linux/notifier.h> #include <asm/atomic.h>
drivers/message/i2o/i2o_block.c renamed from drivers/message/i2o/i2o_block.c.orig +0 -1
@@ -1989,7 +1989,6 @@void cleanup_module (void ) { -struct gendisk *gdp;int i;if (evt_running) {
drivers/message/i2o/i2o_scsi.c renamed from drivers/message/i2o/i2o_scsi.c.orig +4 -4
@@ -48,9 +48,9 @@#include <linux/blk.h> #include <linux/version.h> #include <linux/i2o.h> -#include "../scsi/scsi.h" -#include "../scsi/hosts.h" -#include "../scsi/sd.h" +#include "../../scsi/scsi.h" +#include "../../scsi/hosts.h" +#include "../../scsi/sd.h" #include "i2o_scsi.h" #define VERSION_STRING "Version 0.0.1"
@@ -909,4 +909,4 @@static Scsi_Host_Template driver_template =I2OSCSI ; -#include "../scsi/scsi_module.c" +#include "../../scsi/scsi_module.c"
drivers/char/sonypi.c renamed from drivers/char/sonypi.c.orig +1 -0
@@ -43,6 +43,7 @@#include "sonypi.h" #include <linux/sonypi.h> +extern int is_sony_vaio_laptop;/* set in DMI table parse routines */ static struct sonypi_device sonypi_device;static int minor =-1 ;
include/scsi/scsi.h +6 -0
@@ -214,6 +214,12 @@/* Used to get the PCI location of a device */ #define SCSI_IOCTL_GET_PCI 0x5387 +/* Used to invoke Target Defice Reset for Fibre Channel */ +#define SCSI_IOCTL_FC_TDR 0x5388 + +/* Used to get Fibre Channel WWN and port_id from device */ +#define SCSI_IOCTL_FC_TARGET_ADDRESS 0x5389 +/* * Overrides for Emacs so that we follow Linus's tabbing style. * Emacs will notice this stuff at the end of the file and automatically
drivers/scsi/cpqfcTSinit.c +1 -0
@@ -63,6 +63,7 @@#include <linux/config.h> #include <linux/module.h> +#include <linux/init.h> #include <linux/version.h> /* Embedded module documentation macros - see module.h */
fs/udf/udfdecl.h renamed from fs/udf/udfdecl.h.orig +1 -1
@@ -150,7 +150,7 @@/* lowlevel.c */ extern unsigned int udf_get_last_session (struct super_block *); -extern unsigned int udf_get_last_block (struct super_block *); +extern unsigned long udf_get_last_block (struct super_block *);/* partition.c */ extern Uint32 udf_get_pblock (struct super_block *,Uint32 ,Uint16 ,Uint32 );
Quoted 4 lines · Eyal Lebedinsky
To build a full pre3 one also needs other patches off the list
sonypi
cpqfcTSinit
These may not be the "proper" patches but they do the job for now.
[...]
drivers/char/sonypi.c line 49
Quoted 10 lines
drivers/char/sonypi.c renamed from drivers/char/sonypi.c.orig +1
-0@@ -43,6 +43,7 @@#include "sonypi.h" #include <linux/sonypi.h> +extern int is_sony_vaio_laptop;/* set in DMI table parse routines */ static struct sonypi_device sonypi_device;static int minor =-1 ;
No, the proper patch for this particular problem is:
include/asm-i386/system.h renamed from include/asm-i386/system.h.orig +2 -0
@@ -349,4 +349,6 @@void disable_hlt (void );void enable_hlt (void ); +extern int is_sony_vaio_laptop; +#endif
Linus, please apply.
Stelian.
Signature · 4 lines
Stelian Pop <[email protected]> |---------------- Free Software Engineer -----------------| | Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 | |------------- Alcôve, liberating software ---------------|