[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1427781054-22216-1-git-send-email-broonie@kernel.org>
Date: Tue, 31 Mar 2015 06:50:54 +0100
From: Mark Brown <broonie@...nel.org>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, trivial@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: [PATCH] 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.
Signed-off-by: Mark Brown <broonie@...nel.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists