public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Francesco Sportolari <francesco@unipg.it>
To: linux-kernel@vger.kernel.org
Subject: [bug 1079] [PATCH] 2.6.0-test3: pmac ide driver doesn't compile
Date: Wed, 13 Aug 2003 09:34:56 +0200	[thread overview]
Message-ID: <200308130934.56092.francesco@unipg.it> (raw)

Hi all,
the pmac IDE driver (drivers/ide/ppc/pmac.c) doesn't compile due to a change 
in ide_drive_s struct.
 
 Patch follows.

-- Francesco

--- old/drivers/ide/ppc/pmac.c	2003-08-11 11:45:27.000000000 +0200
+++ linux-2.6.0-test3/drivers/ide/ppc/pmac.c	2003-08-11 11:40:11.000000000 
+0200
@@ -942,7 +942,7 @@
 	if (hwif->sg_dma_active)
 		BUG();

-	nents = blk_rq_map_sg(&drive->queue, rq, sg);
+	nents = blk_rq_map_sg(drive->queue, rq, sg);

 	if (rq_data_dir(rq) == READ)
 		pmif->sg_dma_direction = PCI_DMA_FROMDEVICE;
@@ -1589,7 +1589,7 @@
 		HWGROUP(drive)->busy = 1;
 		pmac_ide_dma_check(drive);
 		HWGROUP(drive)->busy = 0;
-		if (!list_empty(&drive->queue.queue_head))
+		if (!list_empty(&drive->queue->queue_head))
 			ide_do_request(HWGROUP(drive), 0);
 		spin_unlock_irq(&ide_lock);
 	}
@@ -1673,7 +1673,7 @@
 	/* We resume processing on the HW group */
 	spin_lock_irqsave(&ide_lock, flags);
 	HWGROUP(drive)->busy = 0;
-	if (!list_empty(&drive->queue.queue_head))
+	if (!list_empty(&drive->queue->queue_head))
 		ide_do_request(HWGROUP(drive), 0);
 	spin_unlock_irqrestore(&ide_lock, flags);
 }



             reply	other threads:[~2003-08-13  7:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-13  7:34 Francesco Sportolari [this message]
2003-08-13  9:53 ` [bug 1079] [PATCH] 2.6.0-test3: pmac ide driver doesn't compile Benjamin Herrenschmidt

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=200308130934.56092.francesco@unipg.it \
    --to=francesco@unipg.it \
    --cc=linux-kernel@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