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

[-- Attachment #1: Type: text/plain, Size: 356 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.69. 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: 946 bytes --]

--- linux-2.5.69-orig/drivers/scsi/inia100.c	Sun May  4 16:53:08 2003
+++ linux-2.5.69-inia100/drivers/scsi/inia100.c	Wed May  7 11:39:57 2003
@@ -142,11 +142,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;
@@ -165,8 +165,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-05-08 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-08 23:17 [patch] 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.