diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-08-18 19:51:01 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-18 12:55:16 +0530 |
commit | 985d51371140d367c1b0df35c57cdc43c3d01a30 (patch) | |
tree | 06214647d8547a7025c58c3a16a6fc0ee3118751 /security/yama/Makefile | |
parent | 7f35e2798d01c90d6a2f306f7a9de4d7e004e905 (diff) |
dmaengine: iop-adma: Fix pointer cast warnings
drivers/dma/iop-adma.c: In function ‘iop_adma_alloc_chan_resources’:
drivers/dma/iop-adma.c:447:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
hw_desc = (char *) iop_chan->device->dma_desc_pool;
^
drivers/dma/iop-adma.c:449:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(dma_addr_t) &hw_desc[idx * IOP_ADMA_SLOT_SIZE];
^
drivers/dma/iop-adma.c: In function ‘iop_adma_probe’:
drivers/dma/iop-adma.c:1301:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void *) adev->dma_desc_pool);
Use dma_addr_t for dma_desc_pool, and %pad to print dma_addr_t.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200818115101.55700-1-yuehaibing@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'security/yama/Makefile')
0 files changed, 0 insertions, 0 deletions