diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-05-24 02:49:06 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-05-30 02:22:58 -0400 |
commit | ba6ab3b359c86a762f621de8fc6ba5a229aef23f (patch) | |
tree | c5ea7337e89486f80f2d9f7934769f0e91e61e17 | |
parent | fb9caf370f4d0457789d13a1a1b110a8db846e5e (diff) |
dmaengine: imx-sdma: Fix compilation warning.
Replace '%d' by '%zu' to fix the following compilation warning:-
drivers/dma/imx-sdma.c: In function ‘sdma_prep_dma_cyclic’:
drivers/dma/imx-sdma.c:1327:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
channel, period_len, 0xffff);
^
drivers/dma/imx-sdma.c:1350:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=]
dev_dbg(sdma->dev, "entry %d: count: %d dma: %#llx %s%s\n",
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/imx-sdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 83d892c438cd..a67ec1bdc4e0 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1323,7 +1323,7 @@ static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic( | |||
1323 | } | 1323 | } |
1324 | 1324 | ||
1325 | if (period_len > 0xffff) { | 1325 | if (period_len > 0xffff) { |
1326 | dev_err(sdma->dev, "SDMA channel %d: maximum period size exceeded: %d > %d\n", | 1326 | dev_err(sdma->dev, "SDMA channel %d: maximum period size exceeded: %zu > %d\n", |
1327 | channel, period_len, 0xffff); | 1327 | channel, period_len, 0xffff); |
1328 | goto err_out; | 1328 | goto err_out; |
1329 | } | 1329 | } |
@@ -1347,7 +1347,7 @@ static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic( | |||
1347 | if (i + 1 == num_periods) | 1347 | if (i + 1 == num_periods) |
1348 | param |= BD_WRAP; | 1348 | param |= BD_WRAP; |
1349 | 1349 | ||
1350 | dev_dbg(sdma->dev, "entry %d: count: %d dma: %#llx %s%s\n", | 1350 | dev_dbg(sdma->dev, "entry %d: count: %zu dma: %#llx %s%s\n", |
1351 | i, period_len, (u64)dma_addr, | 1351 | i, period_len, (u64)dma_addr, |
1352 | param & BD_WRAP ? "wrap" : "", | 1352 | param & BD_WRAP ? "wrap" : "", |
1353 | param & BD_INTR ? " intr" : ""); | 1353 | param & BD_INTR ? " intr" : ""); |