summaryrefslogtreecommitdiffstats
path: root/drivers/dma/mmp_tdma.c
diff options
context:
space:
mode:
authorVinod Koul2016-09-14 12:23:08 +0200
committerVinod Koul2016-09-26 18:59:47 +0200
commit3e13b386963b337de98a0ff92d2eefc5dfef6edd (patch)
treeade4d4f65c860553c1465b6a3e5cf17978a9cc7f /drivers/dma/mmp_tdma.c
parentdmaengine: ep93xx: enable COMPILE_TEST (diff)
downloadkernel-qcow2-linux-3e13b386963b337de98a0ff92d2eefc5dfef6edd.tar.gz
kernel-qcow2-linux-3e13b386963b337de98a0ff92d2eefc5dfef6edd.tar.xz
kernel-qcow2-linux-3e13b386963b337de98a0ff92d2eefc5dfef6edd.zip
dmaengine: mmp_tdma: use correct print specifiers for size_t
This driver warns: drivers/dma/mmp_tdma.c: In function 'mmp_tdma_prep_dma_cyclic': drivers/dma/mmp_tdma.c:437:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] We should use %zu to print 'size_t' values. Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mmp_tdma.c')
-rw-r--r--drivers/dma/mmp_tdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index b3441f57a364..d7422b1bf406 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *mmp_tdma_prep_dma_cyclic(
if (period_len > TDMA_MAX_XFER_BYTES) {
dev_err(tdmac->dev,
- "maximum period size exceeded: %d > %d\n",
+ "maximum period size exceeded: %zu > %d\n",
period_len, TDMA_MAX_XFER_BYTES);
goto err_out;
}