From: Mike Christie <mikenc@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [patch] [resend] fixes compile error in inia100.c
Date: Mon, 16 Jun 2003 16:31:31 -0700 [thread overview]
Message-ID: <3EEE5353.6080500@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
The attached patch fixes the compile errors in inia100.c described in
Bugzilla bug #345 at http://bugme.osdl.org/show_bug.cgi?id=345. It was
built against 2.5.71. I do not have the hardware, so I have only
verified that it compiles correctly.
Mike Christie
mikenc@us.ibm.com
inia100.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
[-- Attachment #2: inia100.patch --]
[-- Type: text/plain, Size: 938 bytes --]
--- linux-2.5.71/drivers/scsi/inia100.c Sat Jun 14 12:18:06 2003
+++ linux-2.5.71_test/drivers/scsi/inia100.c Mon Jun 16 15:48:22 2003
@@ -156,11 +156,11 @@
spin_lock_irqsave(&(pHCB->pSRB_lock), flags);
- pSRB->next = NULL; /* Pointer to next */
+ pSRB->SCp.ptr = NULL; /* Pointer to next */
if (pHCB->pSRB_head == NULL)
pHCB->pSRB_head = pSRB;
else
- pHCB->pSRB_tail->next = pSRB; /* Pointer to next */
+ pHCB->pSRB_tail->SCp.ptr = (char *)pSRB; /* Pointer to next */
pHCB->pSRB_tail = pSRB;
spin_unlock_irqrestore(&(pHCB->pSRB_lock), flags);
return;
@@ -179,8 +179,8 @@
ULONG flags;
spin_lock_irqsave(&(pHCB->pSRB_lock), flags);
if ((pSRB = (Scsi_Cmnd *) pHCB->pSRB_head) != NULL) {
- pHCB->pSRB_head = pHCB->pSRB_head->next;
- pSRB->next = NULL;
+ pHCB->pSRB_head = (Scsi_Cmnd *) pHCB->pSRB_head->SCp.ptr;
+ pSRB->SCp.ptr = NULL;
}
spin_unlock_irqrestore(&(pHCB->pSRB_lock), flags);
return (pSRB);
reply other threads:[~2003-06-16 23:17 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=3EEE5353.6080500@us.ibm.com \
--to=mikenc@us.ibm.com \
--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