Messages in this thread Patch in this message | | | From | Eric PAIRE <> | Subject | PATCH for -DDEBUG compilation | Date | Wed, 22 Jul 1998 16:50:39 +0200 |
| |
Hi,
In order to compile driver/scsi/scsi_error.c with -DDEBUG, the following patch must be applied (it also fixes a double definition of MAX_SCSI_DEVICE_CODE in scsi.c and scsi.h)
Best regards, -Eric +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Eric PAIRE Email : e.paire@gr.opengroup.org | THE Open GROUP - Grenoble Research Institute Phone : +33 (0) 476 63 48 71 | 2, avenue de Vignate Fax : +33 (0) 476 51 05 32 | F-38610 Gieres FRANCE ------ Cut Here ------ Cut Here ------ Cut Here ------ Cut Here ------ --- linux/drivers/scsi/scsi.c.OLD Wed Jul 15 16:56:51 1998 +++ linux/drivers/scsi/scsi.c Wed Jul 22 16:44:45 1998 @@ -90,14 +90,6 @@ # error You lose. #endif -#define MAX_SCSI_DEVICE_CODE 10 - -#ifdef DEBUG - #define SCSI_TIMEOUT (5*HZ) -#else - #define SCSI_TIMEOUT (2*HZ) -#endif - #define MIN_RESET_DELAY (2*HZ) /* Do not call reset on error if we just did a reset within 15 sec. */ --- linux/drivers/scsi/scsi.h.OLD Wed Jul 15 16:49:06 1998 +++ linux/drivers/scsi/scsi.h Wed Jul 22 16:44:46 1998 @@ -42,6 +42,12 @@ #define MAX_SCSI_DEVICE_CODE 10 extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE]; +#ifdef DEBUG + #define SCSI_TIMEOUT (5*HZ) +#else + #define SCSI_TIMEOUT (2*HZ) +#endif + /* * Use these to separate status msg and our bytes *
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |