drivers/scsi/BusLogic: Use the DMA_{64,
Subsystems (3)
PATCH 8/19 drivers/scsi/BusLogic: Use the DMA_{64,
Hello,
Description: Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/BusLogic.c +3 -3
@@ -676,7 +676,7 @@ static int __init BusLogic_InitializeMulif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
@@ -831,7 +831,7 @@ static int __init BusLogic_InitializeMulif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
@@ -885,7 +885,7 @@ static int __init BusLogic_InitializeFlaif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
PATCH 8/19 drivers/scsi/BusLogic: Use the
The previous patch did not compile cleanly on all architectures so here's a fixed one.
Use the DMA_32BIT_MASK constant 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
drivers/scsi/BusLogic.c +4 -3
@@ -41,6 +41,7 @@#include <linux/stat.h> #include <linux/pci.h> #include <linux/spinlock.h> +#include <linux/dma-mapping.h> #include <scsi/scsicam.h> #include <asm/dma.h>
@@ -676,7 +677,7 @@ static int __init BusLogic_InitializeMulif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
@@ -831,7 +832,7 @@ static int __init BusLogic_InitializeMulif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
@@ -885,7 +886,7 @@ static int __init BusLogic_InitializeFlaif (pci_enable_device (PCI_Device))continue ; -if (pci_set_dma_mask (PCI_Device, (u64 )0xffffffff )) +if (pci_set_dma_mask (PCI_Device,DMA_32BIT_MASK ))continue ; Bus = PCI_Device->bus->number;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors