Messages in this thread Patch in this message | | | From | "William King" <> | Subject | [PATCH] minor scsi cleanup in 2.4.x | Date | Thu, 10 Apr 2003 09:01:19 -0700 |
| |
Attached is a patch (based off of 2.4.19) which removes 2 unnecessary externs and adds a new scsi device type string. The externs are unnecessary since the array is declared extern in scsi.h. The string change is consistent with the SCSI-3 standard.
To whom it may concern, please apply. :-)
Thanks, Bill --- g_NCR5380.c 2003/04/10 15:43:13 1.1 +++ g_NCR5380.c 2003/04/10 15:43:27 @@ -781,7 +781,6 @@ struct NCR5380_hostdata *hostdata; #ifdef NCR5380_STATS Scsi_Device *dev; - extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE]; #endif save_flags(flags); cli(); --- scsi_proc.c 2003/04/10 15:42:04 1.1 +++ scsi_proc.c 2003/04/10 15:42:31 @@ -260,7 +260,6 @@ { int x, y = *size; - extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE]; y = sprintf(buffer + len, "Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n Vendor: ", --- scsi.c 2003/04/10 15:29:17 1.1 +++ scsi.c 2003/04/10 15:31:11 @@ -140,7 +140,7 @@ "Communications ", "Unknown ", "Unknown ", - "Unknown ", + "Storage Array ", "Enclosure ", }; | |