aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-06-02 00:02:59 -0400
committerVinod Koul <vinod.koul@intel.com>2014-06-03 02:05:24 -0400
commit9d9f71a804314e7d50e2fa9e6e61bc77e2d6ae1c (patch)
tree43a9be74ba0ef8676b0752da96e5c46ff5068b09 /drivers/dma
parenta68765430772fac92ad4f0dd9e33d31b4276546e (diff)
dmaengine: sh: fix print specifier warnings
As documented in Documentation/printk-formats.txt we should use %zu/%zx specifiers for size_t type variables for the code to compile on different architectures. This is uncovered as COMPILE_TEST has been enabled recently for this driver drivers/dma/sh/shdma-base.c: In function 'shdma_prep_dma_cyclic': >> drivers/dma/sh/shdma-base.c:683:4: warning: format '%d' expects argument of >> type 'int', but argument 4 has type 'size_t' [-Wformat=] __func__, buf_len, period_len, slave_id); >> drivers/dma/sh/shdma-base.c:683:4: warning: format '%d' expects argument of >> type 'int', but argument 5 has type 'size_t' [-Wformat=] Reported-by: kbuild test robot <fengguang.wu@intel.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sh/shdma-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/shdma-base.c b/drivers/dma/sh/shdma-base.c
index 66b4a35f7bd1..591b9d8cfd7f 100644
--- a/drivers/dma/sh/shdma-base.c
+++ b/drivers/dma/sh/shdma-base.c
@@ -679,7 +679,7 @@ static struct dma_async_tx_descriptor *shdma_prep_dma_cyclic(
679 /* Someone calling slave DMA on a generic channel? */ 679 /* Someone calling slave DMA on a generic channel? */
680 if (slave_id < 0 || (buf_len < period_len)) { 680 if (slave_id < 0 || (buf_len < period_len)) {
681 dev_warn(schan->dev, 681 dev_warn(schan->dev,
682 "%s: bad parameter: buf_len=%d, period_len=%d, id=%d\n", 682 "%s: bad parameter: buf_len=%zu, period_len=%zu, id=%d\n",
683 __func__, buf_len, period_len, slave_id); 683 __func__, buf_len, period_len, slave_id);
684 return NULL; 684 return NULL;
685 } 685 }