dmaengine: sun61: fix warning on bad print specfier

The sg_dma_len() returns unsigned int but we had driver print it as %zu, use
%u as documented in Documentation/printk-formats.txt

drivers/dma/sun6i-dma.c: In function ‘sun6i_dma_prep_slave_sg’:
drivers/dma/sun6i-dma.c:643: warning: format ‘%zu’ expects type ‘size_t’,
but argument 8 has type ‘unsigned int’
drivers/dma/sun6i-dma.c:661: warning: format ‘%zu’ expects type ‘size_t’,
but argument 8 has type ‘unsigned int’

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
Vinod Koul 2014-07-28 12:32:51 +05:30
parent 42c0d54e62
commit 7f5e03e736
1 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg(
DMA_CHAN_CFG_DST_DRQ(vchan->port); DMA_CHAN_CFG_DST_DRQ(vchan->port);
dev_dbg(chan2dev(chan), dev_dbg(chan2dev(chan),
"%s; chan: %d, dest: %pad, src: %pad, len: %zu. flags: 0x%08lx\n", "%s; chan: %d, dest: %pad, src: %pad, len: %u. flags: 0x%08lx\n",
__func__, vchan->vc.chan.chan_id, __func__, vchan->vc.chan.chan_id,
&sconfig->dst_addr, &sg_dma_address(sg), &sconfig->dst_addr, &sg_dma_address(sg),
sg_dma_len(sg), flags); sg_dma_len(sg), flags);
@ -659,7 +659,7 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg(
DMA_CHAN_CFG_SRC_DRQ(vchan->port); DMA_CHAN_CFG_SRC_DRQ(vchan->port);
dev_dbg(chan2dev(chan), dev_dbg(chan2dev(chan),
"%s; chan: %d, dest: %pad, src: %pad, len: %zu. flags: 0x%08lx\n", "%s; chan: %d, dest: %pad, src: %pad, len: %u. flags: 0x%08lx\n",
__func__, vchan->vc.chan.chan_id, __func__, vchan->vc.chan.chan_id,
&sg_dma_address(sg), &sconfig->src_addr, &sg_dma_address(sg), &sconfig->src_addr,
sg_dma_len(sg), flags); sg_dma_len(sg), flags);