All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.6.0-test3] fix ide-scsi for ide_drive_t->queue change
@ 2003-08-09 11:55 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2003-08-09 11:55 UTC (permalink / raw)
  To: linux-kernel

This patch fixes ide-scsi.c for the ide_drive_t->queue type change
in 2.6.0-test3.

Without the patch you'll get these new warnings in -test3:

drivers/scsi/ide-scsi.c: In function `idescsi_abort':
drivers/scsi/ide-scsi.c:875: warning: passing arg 1 of `elv_queue_empty' from incompatible pointer type
drivers/scsi/ide-scsi.c: In function `idescsi_reset':
drivers/scsi/ide-scsi.c:902: warning: passing arg 1 of `elv_next_request' from incompatible pointer type

/Mikael

diff -ruN linux-2.6.0-test3/drivers/scsi/ide-scsi.c linux-2.6.0-test3.ide-scsi-fixes-2.6.0-test3/drivers/scsi/ide-scsi.c
--- linux-2.6.0-test3/drivers/scsi/ide-scsi.c	2003-07-28 01:24:44.000000000 +0200
+++ linux-2.6.0-test3.ide-scsi-fixes-2.6.0-test3/drivers/scsi/ide-scsi.c	2003-08-09 12:58:38.000000000 +0200
@@ -872,7 +872,7 @@
 			continue;
 		}
 		/* no, but is it queued in the ide subsystem? */
-		if (elv_queue_empty(&drive->queue)) {
+		if (elv_queue_empty(drive->queue)) {
 			spin_unlock_irqrestore(&ide_lock, flags);
 			return SUCCESS;
 		}
@@ -899,7 +899,7 @@
 		schedule_timeout(1);
 	}
 	/* now nuke the drive queue */
-	while ((req = elv_next_request(&drive->queue))) {
+	while ((req = elv_next_request(drive->queue))) {
 		blkdev_dequeue_request(req);
 		end_that_request_last(req);
 	}

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

only message in thread, other threads:[~2003-08-09 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-09 11:55 [PATCH][2.6.0-test3] fix ide-scsi for ide_drive_t->queue change Mikael Pettersson

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.