]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dma64_addr_t fix ups
authorDavid Mosberger <davidm@hpl.hp.com>
Mon, 11 Feb 2002 13:09:34 +0000 (05:09 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 11 Feb 2002 13:09:34 +0000 (05:09 -0800)
This patch fixes up two places whre dma64_addr_t is used incorrectly.
Note that pci_dev->dma_mask and the second argument to
blk_queue_bounce_limit() are both u64, so the old types clearly are
wrong (besides, dma64_addr_t is supposed to be used only with the
pci_dac_*() routines, as per DaveM's earlier mail).

--david

drivers/ide/ide-dma.c
drivers/scsi/scsi_merge.c

index edaccf8e59d5e93bd7985a73821f7c7abd04f330..58610fc824be1e2de569f4b6e66dc7c735ef0c62 100644 (file)
@@ -553,7 +553,7 @@ static ide_startstop_t ide_dma_timeout_revovery (ide_drive_t *drive)
 
 static void ide_toggle_bounce(ide_drive_t *drive, int on)
 {
-       dma64_addr_t addr = BLK_BOUNCE_HIGH;
+       u64 addr = BLK_BOUNCE_HIGH;
 
        if (on && drive->media == ide_disk && HWIF(drive)->highmem) {
                if (!PCI_DMA_BUS_IS_PHYS)
index 807ecbc58dca52d681f9f1a53ba6f303b159b518..4890d73324536494111c0883fc4e62f33cbd79bb 100644 (file)
@@ -123,7 +123,7 @@ void scsi_initialize_merge_fn(Scsi_Device * SDpnt)
 {
        struct Scsi_Host *SHpnt = SDpnt->host;
        request_queue_t *q = &SDpnt->request_queue;
-       dma64_addr_t bounce_limit;
+       u64 bounce_limit;
 
        /*
         * The generic merging functions work just fine for us.