Skip to contentSkip to conversation

drivers/scsi/ahci: Use the DMA_{64,32}BIT_MASK constants

PATCH New [email protected] 1 participant 1 message Apr 8, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drivers/scsi/ahci: Use the DMA_{64,32}BIT_MASK constants

The previous patch did not compile cleanly on all architectures so here's a fixed one.

Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()
This patch includes dma-mapping.h explicitly because it caused errors on some architectures otherwise.
See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details

---

 kj-domen/drivers/scsi/ahci.c |    1 +
 1 files changed, 1 insertion(+)
drivers/scsi/ahci.c renamed from drivers/scsi/ahci.c~dma_mask-drivers_scsi_ahci +1 -0
diff -puN drivers/scsi/ahci.c~dma_mask-drivers_scsi_ahci drivers/scsi/ahci.c
@@ -32,6 +32,7 @@
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
+#include <linux/dma-mapping.h>
 #include "scsi.h"
 #include <scsi/scsi_host.h>
 #include <linux/libata.h>

_