]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
linux/dmaengine.h needs bitmap.h and asm/page.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 29 Jul 2011 06:55:11 +0000 (16:55 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 2 Aug 2011 17:23:31 +0000 (13:23 -0400)
Presumably caused by some include file no longer being implicitly
included.

In file included from drivers/dma/iovlock.c:28:0:
include/linux/dmaengine.h: In function '__dma_cap_zero':
include/linux/dmaengine.h:736:2: error: implicit declaration of function 'bitmap_zero'
In file included from include/linux/nodemask.h:95:0,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/mm.h:8,
                 from include/linux/pagemap.h:7,
                 from drivers/dma/iovlock.c:29:
include/linux/bitmap.h: At top level:
include/linux/bitmap.h:159:20: warning: conflicting types for 'bitmap_zero'
include/linux/bitmap.h:159:20: error: static declaration of 'bitmap_zero' follows non-static declaration
include/linux/dmaengine.h:736:2: note: previous implicit declaration of 'bitmap_zero' was here

PG: In addition to Stephen's find above, I found this variant, needing page.h

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

Signed-off-by: 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;