dmaengine: zynqmp: avoid cast warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 11 Jul 2016 21:46:09 +0000 (23:46 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 12 Jul 2016 04:33:16 +0000 (10:03 +0530)
commit7cdd3587b8628215f377d5d73a39540d94f33dc1
tree32222ba14bb7fc3038592c9bdcd5840328d11e8f
parente598e6eb46dd448d9b77a564e4d9664da52e3e1f
dmaengine: zynqmp: avoid cast warning

The newly added zynqmp_dma driver produces a warning on 32-bit architectures
when dma_addr_t is 64-bit wide:

drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_config_sg_ll_desc':
drivers/dma/xilinx/zynqmp_dma.c:321:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
        ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);
         ^
drivers/dma/xilinx/zynqmp_dma.c:321:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
        ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);

This changes the cast to the more appropriate uintptr_t.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/zynqmp_dma.c