All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] [resend] fixes compile error in inia100.c
@ 2003-06-16 23:31 Mike Christie
  0 siblings, 0 replies; only message in thread
From: Mike Christie @ 2003-06-16 23:31 UTC (permalink / raw)
  To: linux-scsi

[-- 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-16 23:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-16 23:31 [patch] [resend] fixes compile error in inia100.c Mike Christie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.