Skip to contentSkip to conversation

dmapool: Declare struct device

PATCH New Mark Brown 1 participant 1 message Mar 31, 2015 MM misc

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 dmapool: Declare struct device

dmapool uses struct device in function arguments but relies on an implicit inclusion to declare struct device causing warnings in some configurations:

include/linux/dmapool.h:31:7: warning: 'struct device' declared inside parameter list

Fix this by adding a struct device declaration to the file.

---
 include/linux/dmapool.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/dmapool.h +2 -0
index 022e34fcbd1b..52456aa566a0 100644
@@ -14,6 +14,8 @@
 #include <asm/io.h>
 #include <asm/scatterlist.h>
 
+struct device;
+
 struct dma_pool *dma_pool_create(const char *name, struct device *dev, 
 			size_t size, size_t align, size_t allocation);
 
Signature · 1 line
2.1.4