linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 29 Jul 2011 06:55:11 +0000 (16:55 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:32:30 +0000 (19:32 -0400)
The implicit presence of module.h and all its sub-includes was
masking these implicit header usages:

include/linux/dmaengine.h:684: warning: 'struct page' declared inside parameter list
include/linux/dmaengine.h:684: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/dmaengine.h:687: warning: 'struct page' declared inside parameter list
include/linux/dmaengine.h:736:2: error: implicit declaration of function 'bitmap_zero'

With input from Stephen Rothwell <sfr@canb.auug.org.au>

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/dmaengine.h

index 8fbf40e0713cfc9a4dd7ec64bc66010a42afc644..1ceff5ae9d31c2df27b1e6bcc46df342a5b43125 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/device.h>
 #include <linux/uio.h>
 #include <linux/dma-direction.h>
+#include <linux/bitmap.h>
+#include <asm/page.h>
 
 struct scatterlist;