LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] dmapool: Declare struct device
@ 2015-03-31  5:50 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2015-03-31  5:50 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, trivial, Mark Brown

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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 include/linux/dmapool.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h
index 022e34fcbd1b..52456aa566a0 100644
--- a/include/linux/dmapool.h
+++ b/include/linux/dmapool.h
@@ -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);
 
-- 
2.1.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-31  5:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31  5:50 [PATCH] dmapool: Declare struct device Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).