lkml.org 
[lkml]   [2020]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] dmaengine: iop-adma: Fix pointer cast warnings
On 18-08-20, 19:51, YueHaibing wrote:
> 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.

Applied, thanks

--
~Vinod

\
 
 \ /
  Last update: 2020-09-18 09:26    [W:0.024 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site