[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <3912f868-18f8-44ef-9312-b3842270b4da@BY2FFO11OLC001.protection.gbl>
Date: Mon, 30 Mar 2015 14:30:26 +0530
From: Kedareswara rao Appana <appana.durga.rao@...inx.com>
To: <vinod.koul@...el.com>, <sfr@...b.auug.org.au>
CC: <linux-next@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<anirudh@...inx.com>, Kedareswara rao Appana <appanad@...inx.com>
Subject: [PATCH] dma: vdma: Fix compilation warnings
This patch fixes the following compilation warnings.
In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0:
include/linux/dmapool.h:18:4: warning: 'struct device' declared inside parameter list
size_t size, size_t align, size_t allocation);
^
include/linux/dmapool.h:18:4: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/dmapool.h:31:7: warning: 'struct device' declared inside parameter list
size_t size, size_t align, size_t allocation);
^
drivers/dma/xilinx/xilinx_vdma.c: In function 'xilinx_vdma_alloc_chan_resources':
drivers/dma/xilinx/xilinx_vdma.c:501:20: warning: passing argument 2 of 'dma_pool_create' from incompatible pointer type
chan->desc_pool = dma_pool_create("xilinx_vdma_desc_pool",
^
In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0:
include/linux/dmapool.h:17:18: note: expected 'struct device *' but argument is of type 'struct device *'
struct dma_pool *dma_pool_create(const char *name, struct device *dev, .
Signed-off-by: Kedareswara rao Appana <appanad@...inx.com>
---
- This patch is rebased on the slave-dma next.
include/linux/dmapool.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h
index 022e34f..01c91bb 100644
--- a/include/linux/dmapool.h
+++ b/include/linux/dmapool.h
@@ -13,6 +13,7 @@
#include <asm/io.h>
#include <asm/scatterlist.h>
+#include <linux/device.h>
struct dma_pool *dma_pool_create(const char *name, struct device *dev,
size_t size, size_t align, size_t allocation);
--
2.1.2
--
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