diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-06-11 17:03:11 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-06-15 06:14:45 +0200 |
commit | 4aff2f9355a0b4480e56b7e349fec69f17e45eb9 (patch) | |
tree | ec603855bb74a009eae62cf4d14edb4b3a250bc0 /drivers/dma/mxs-dma.c | |
parent | Linux 4.12-rc1 (diff) | |
download | linux-4aff2f9355a0b4480e56b7e349fec69f17e45eb9.tar.xz linux-4aff2f9355a0b4480e56b7e349fec69f17e45eb9.zip |
dmaengine: mxs: Use %zu for printing a size_t variable
Use %zu for printing a size_t variable in order to fix the following
build warning:
drivers/dma/mxs-dma.c: In function 'mxs_dma_prep_dma_cyclic':
drivers/dma/mxs-dma.c:621:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat]
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mxs-dma.c')
-rw-r--r-- | drivers/dma/mxs-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index e217268c7098..41d167921fab 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -617,7 +617,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_dma_cyclic( if (period_len > MAX_XFER_BYTES) { dev_err(mxs_dma->dma_device.dev, - "maximum period size exceeded: %d > %d\n", + "maximum period size exceeded: %zu > %d\n", period_len, MAX_XFER_BYTES); goto err_out; } |