diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-07-01 13:24:40 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-16 10:49:00 -0400 |
commit | f950f025364ad3ad4834cd1058737f272b2cc665 (patch) | |
tree | 24938fc2fa42e2da244125a7f33e437c9f95d68f | |
parent | cb28c7ab786b3e77f8435a41929b3ee9bcc51eb1 (diff) |
dmaengine: fsl_raid: fix size_t print specifiers
size_t should be printed with %zu, not %lu as driver did, so fix these
warning by doing this change
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_genq':
drivers/dma/fsl_raid.c:341:4: warning: format '%lu' expects argument of type
'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
len, FSL_RE_MAX_DATA_LEN);
^
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_pq':
drivers/dma/fsl_raid.c:428:4: warning: format '%lu' expects argument of type
'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
len, FSL_RE_MAX_DATA_LEN);
^
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_memcpy':
drivers/dma/fsl_raid.c:549:4: warning: format '%lu' expects argument of type
'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
len, FSL_RE_MAX_DATA_LEN);
^
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/fsl_raid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c index 1b71d1fea395..ec9c73b7abe6 100644 --- a/drivers/dma/fsl_raid.c +++ b/drivers/dma/fsl_raid.c | |||
@@ -337,7 +337,7 @@ static struct dma_async_tx_descriptor *fsl_re_prep_dma_genq( | |||
337 | 337 | ||
338 | re_chan = container_of(chan, struct fsl_re_chan, chan); | 338 | re_chan = container_of(chan, struct fsl_re_chan, chan); |
339 | if (len > FSL_RE_MAX_DATA_LEN) { | 339 | if (len > FSL_RE_MAX_DATA_LEN) { |
340 | dev_err(re_chan->dev, "genq tx length %lu, max length %d\n", | 340 | dev_err(re_chan->dev, "genq tx length %zu, max length %d\n", |
341 | len, FSL_RE_MAX_DATA_LEN); | 341 | len, FSL_RE_MAX_DATA_LEN); |
342 | return NULL; | 342 | return NULL; |
343 | } | 343 | } |
@@ -424,7 +424,7 @@ static struct dma_async_tx_descriptor *fsl_re_prep_dma_pq( | |||
424 | 424 | ||
425 | re_chan = container_of(chan, struct fsl_re_chan, chan); | 425 | re_chan = container_of(chan, struct fsl_re_chan, chan); |
426 | if (len > FSL_RE_MAX_DATA_LEN) { | 426 | if (len > FSL_RE_MAX_DATA_LEN) { |
427 | dev_err(re_chan->dev, "pq tx length is %lu, max length is %d\n", | 427 | dev_err(re_chan->dev, "pq tx length is %zu, max length is %d\n", |
428 | len, FSL_RE_MAX_DATA_LEN); | 428 | len, FSL_RE_MAX_DATA_LEN); |
429 | return NULL; | 429 | return NULL; |
430 | } | 430 | } |
@@ -545,7 +545,7 @@ static struct dma_async_tx_descriptor *fsl_re_prep_dma_memcpy( | |||
545 | re_chan = container_of(chan, struct fsl_re_chan, chan); | 545 | re_chan = container_of(chan, struct fsl_re_chan, chan); |
546 | 546 | ||
547 | if (len > FSL_RE_MAX_DATA_LEN) { | 547 | if (len > FSL_RE_MAX_DATA_LEN) { |
548 | dev_err(re_chan->dev, "cp tx length is %lu, max length is %d\n", | 548 | dev_err(re_chan->dev, "cp tx length is %zu, max length is %d\n", |
549 | len, FSL_RE_MAX_DATA_LEN); | 549 | len, FSL_RE_MAX_DATA_LEN); |
550 | return NULL; | 550 | return NULL; |
551 | } | 551 | } |