mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "William King" <wrking3@dadaboom.com>
To: <linux-kernel@vger.kernel.org>, <linux-scsi@vger.kernel.org>
Subject: [PATCH] minor scsi cleanup in 2.4.x
Date: Thu, 10 Apr 2003 09:01:19 -0700	[thread overview]
Message-ID: <JAEGLIPFMODKGALKJJGNEEJNCAAA.wrking3@dadaboom.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

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

[-- Attachment #2: scsi_patch.txt --]
[-- Type: text/plain, Size: 829 bytes --]

--- 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        ",
 };
 

                 reply	other threads:[~2003-04-10 15:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JAEGLIPFMODKGALKJJGNEEJNCAAA.wrking3@dadaboom.com \
    --to=wrking3@dadaboom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®