diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-07-28 03:02:51 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-07-28 03:19:59 -0400 |
commit | 7f5e03e73672932ba5fdb078e79914ca93a9e1ee (patch) | |
tree | d824dbd3ef502c3a47bce1a3a62dfeebc2883fba /drivers/dma/sun6i-dma.c | |
parent | 42c0d54e62369584f2491f072f405602ff504e0e (diff) |
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>
Diffstat (limited to 'drivers/dma/sun6i-dma.c')
-rw-r--r-- | drivers/dma/sun6i-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index e9f99bbc985e..c771d90b8ded 100644 --- a/drivers/dma/sun6i-dma.c +++ b/drivers/dma/sun6i-dma.c | |||
@@ -641,7 +641,7 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg( | |||
641 | DMA_CHAN_CFG_DST_DRQ(vchan->port); | 641 | DMA_CHAN_CFG_DST_DRQ(vchan->port); |
642 | 642 | ||
643 | dev_dbg(chan2dev(chan), | 643 | dev_dbg(chan2dev(chan), |
644 | "%s; chan: %d, dest: %pad, src: %pad, len: %zu. flags: 0x%08lx\n", | 644 | "%s; chan: %d, dest: %pad, src: %pad, len: %u. flags: 0x%08lx\n", |
645 | __func__, vchan->vc.chan.chan_id, | 645 | __func__, vchan->vc.chan.chan_id, |
646 | &sconfig->dst_addr, &sg_dma_address(sg), | 646 | &sconfig->dst_addr, &sg_dma_address(sg), |
647 | sg_dma_len(sg), flags); | 647 | sg_dma_len(sg), flags); |
@@ -659,7 +659,7 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg( | |||
659 | DMA_CHAN_CFG_SRC_DRQ(vchan->port); | 659 | DMA_CHAN_CFG_SRC_DRQ(vchan->port); |
660 | 660 | ||
661 | dev_dbg(chan2dev(chan), | 661 | dev_dbg(chan2dev(chan), |
662 | "%s; chan: %d, dest: %pad, src: %pad, len: %zu. flags: 0x%08lx\n", | 662 | "%s; chan: %d, dest: %pad, src: %pad, len: %u. flags: 0x%08lx\n", |
663 | __func__, vchan->vc.chan.chan_id, | 663 | __func__, vchan->vc.chan.chan_id, |
664 | &sg_dma_address(sg), &sconfig->src_addr, | 664 | &sg_dma_address(sg), &sconfig->src_addr, |
665 | sg_dma_len(sg), flags); | 665 | sg_dma_len(sg), flags); |