From 58a034e2b5408c163fc34c7ede6148fece99619d Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Wed, 8 Apr 2015 09:43:49 +1000 Subject: [PATCH] include/linux/dmapool.h: 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 Signed-off-by: Andrew Morton --- 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 #include +struct device; + struct dma_pool *dma_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t allocation); -- 2.39.5