Stephen Rothwell wrote: > Hi Greg, > > Today's (though it is not new) linux-next build (spac allmodconfig) fails > like this: > > drivers/uwb/whci.c:166: error: `DMA_64BIT_MASK' undeclared (first use in this function) > drivers/uwb/whci.c:166: error: (Each undeclared identifier is reported only once > drivers/uwb/whci.c:166: error: for each function it appears in.) > drivers/uwb/whci.c:168: error: `DMA_32BIT_MASK' undeclared (first use in this function) > drivers/uwb/whc-rc.c:268: error: implicit declaration of function `dma_alloc_coherent' > drivers/uwb/whc-rc.c:286: error: implicit declaration of function `dma_free_coherent' > drivers/usb/host/whci/pzl.c:372: error: implicit declaration of function `dma_alloc_coherent' > drivers/usb/host/whci/pzl.c:395: error: implicit declaration of function `dma_free_coherent' > drivers/usb/host/whci/init.c:132: error: implicit declaration of function `dma_alloc_coherent' > drivers/usb/host/whci/init.c:162: error: implicit declaration of function `dma_free_coherent' > drivers/usb/host/whci/hw.c:48: error: implicit declaration of function `dma_map_single' > drivers/usb/host/whci/hw.c:48: error: `DMA_TO_DEVICE' undeclared (first use in this function) > drivers/usb/host/whci/hw.c:48: error: (Each undeclared identifier is reported only once > drivers/usb/host/whci/hw.c:48: error: for each function it appears in.) > drivers/usb/host/whci/hw.c:78: error: implicit declaration of function `dma_unmap_single' > drivers/usb/host/whci/qset.c:274: error: implicit declaration of function `dma_unmap_single' > drivers/usb/host/whci/qset.c:276: error: `DMA_TO_DEVICE' undeclared (first use in this function) > drivers/usb/host/whci/qset.c:276: error: (Each undeclared identifier is reported only once > drivers/usb/host/whci/qset.c:276: error: for each function it appears in.) > drivers/usb/host/whci/qset.c:326: error: implicit declaration of function `dma_map_single' > drivers/usb/host/whci/qset.c:326: error: `DMA_TO_DEVICE' undeclared (first use in this function) > > I suspect that these files should include linux/dma-mapping.h directly > since it uses things from there. How odd. Looking at my local patch set this has been fixed but looking at the patches Greg has and I see it's not. Try this. I also note that some architectures (sparc amongst them) will BUG with these drivers as the DMA API is only available to PCI devices. The whc-rc and whci-hcd drivers use umc devices which are children of a PCI device. David -- David Vrabel, Senior Software Engineer, Drivers CSR, Churchill House, Cambridge Business Park, Tel: +44 (0)1223 692562 Cowley Road, Cambridge, CB4 0WZ http://www.csr.com/