diff options
| author | Mark Brown <broonie@kernel.org> | 2015-04-07 17:26:44 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-07 19:45:33 -0400 |
| commit | ce66b032ad7b838bf376e3b1bb4d8bce1a69ee5c (patch) | |
| tree | a3c2f3b861e511cf0af956083955df418664da59 /include/linux/dmapool.h | |
| parent | a368ab67aa55615a03b2c9c00fb965bee3ebeaa4 (diff) | |
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 <broonie@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/dmapool.h')
| -rw-r--r-- | include/linux/dmapool.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
| 14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
| 15 | #include <asm/scatterlist.h> | 15 | #include <asm/scatterlist.h> |
| 16 | 16 | ||
| 17 | struct device; | ||
| 18 | |||
| 17 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, | 19 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, |
| 18 | size_t size, size_t align, size_t allocation); | 20 | size_t size, size_t align, size_t allocation); |
| 19 | 21 | ||
