Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() instead of custom macros. 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 Signed-off-by: Domen Puncer --- kj-domen/drivers/atm/he.c | 3 ++- kj-domen/drivers/atm/he.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff -puN drivers/atm/he.c~dma_mask-drivers_atm_he drivers/atm/he.c --- kj/drivers/atm/he.c~dma_mask-drivers_atm_he 2005-04-05 12:57:42.000000000 +0200 +++ kj-domen/drivers/atm/he.c 2005-04-05 12:57:42.000000000 +0200 @@ -70,6 +70,7 @@ #include #include #include +#include #include #include #include @@ -371,7 +372,7 @@ he_init_one(struct pci_dev *pci_dev, con if (pci_enable_device(pci_dev)) return -EIO; - if (pci_set_dma_mask(pci_dev, HE_DMA_MASK) != 0) { + if (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK) != 0) { printk(KERN_WARNING "he: no suitable dma available\n"); err = -EIO; goto init_one_failure; diff -puN drivers/atm/he.h~dma_mask-drivers_atm_he drivers/atm/he.h --- kj/drivers/atm/he.h~dma_mask-drivers_atm_he 2005-04-05 12:57:42.000000000 +0200 +++ kj-domen/drivers/atm/he.h 2005-04-05 12:57:42.000000000 +0200 @@ -380,8 +380,6 @@ struct he_vcc #define PCI_VENDOR_ID_FORE 0x1127 #define PCI_DEVICE_ID_FORE_HE 0x400 -#define HE_DMA_MASK 0xffffffff - #define GEN_CNTL_0 0x40 #define INT_PROC_ENBL (1<<25) #define SLAVE_ENDIAN_MODE (1<<16) _