]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:42 +0000 (14:10 +0200)
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 d946ef7f5e67410c98dfd420f98d7cefd5d12124..a865b3a354cd1aaa408b52592f7ce40221371599 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/device.h>
 #include <linux/uio.h>
 #include <linux/scatterlist.h>
+#include <linux/bitmap.h>
+#include <asm/page.h>
 
 /**
  * typedef dma_cookie_t - an opaque DMA cookie