drivers/scsi/qlogicfc: Use the DMA_{64,
Subsystems (2)
PATCH 18/19 drivers/scsi/qlogicfc: 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/qlogicfc.c +2 -2
@@ -719,8 +719,8 @@ int isp2x00_detect(Scsi_Host_Template *continue ;/* Try to configure DMA attributes. */ -if (pci_set_dma_mask (pdev,0xffffffffffffffffULL ) && -pci_set_dma_mask (pdev,0xffffffffULL )) +if (pci_set_dma_mask (pdev,DMA_64BIT_MASK ) && +pci_set_dma_mask (pdev,DMA_32BIT_MASK ))continue ; host =scsi_register (tmpt,sizeof (struct isp2x00_hostdata ));
PATCH 18/19 drivers/scsi/qlogicfc: Use the DMA_{64,
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
drivers/scsi/qlogicfc.c +3 -2
@@ -61,6 +61,7 @@#include <linux/unistd.h> #include <linux/spinlock.h> #include <linux/interrupt.h> +#include <linux/dma-mapping.h> #include <asm/io.h> #include <asm/irq.h> #include "scsi.h"
@@ -719,8 +720,8 @@ int isp2x00_detect(Scsi_Host_Template *continue ;/* Try to configure DMA attributes. */ -if (pci_set_dma_mask (pdev,0xffffffffffffffffULL ) && -pci_set_dma_mask (pdev,0xffffffffULL )) +if (pci_set_dma_mask (pdev,DMA_64BIT_MASK ) && +pci_set_dma_mask (pdev,DMA_32BIT_MASK ))continue ; host =scsi_register (tmpt,sizeof (struct isp2x00_hostdata ));
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors