]> err.no Git - linux-2.6/commitdiff
[PATCH] drivers/scsi/ahci: add #include req'd for the DMA_{64,32}BIT_MASK constants
authordomen@coderock.org <domen@coderock.org>
Fri, 8 Apr 2005 07:53:06 +0000 (09:53 +0200)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 28 May 2005 03:59:16 +0000 (23:59 -0400)
The previous patch did not compile cleanly on all architectures so
here's a fixed one which #includes <linux/dma-mapping.h>.

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

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Domen Puncer <domen@coderock.org>
diff -puN drivers/scsi/ahci.c~dma_mask-drivers_scsi_ahci drivers/scsi/ahci.c

drivers/scsi/ahci.c

index da5bd33d982d7e521b6b0603adcb0911395b184d..8263b3a5d8d7812cb2413eef2488a1bdd97e75d6 100644 (file)
@@ -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>