diff options
author | Emil Goode <emilgoode@gmail.com> | 2012-09-05 16:22:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-05 18:22:56 -0400 |
commit | 5d86e25c70407cd97a5aa8f39cc3be390bcab116 (patch) | |
tree | 28063f4e9536272f403762db1735e63c9bd047f3 /sound/soc | |
parent | 4f3ad7956d91a5371a572f0420cc07f8c4f32c22 (diff) |
ASoC: wm0010: Fix warning, use format %zu for type size_t
Fix warning by using format specifier %zu for type size_t
Sparse warning:
sound/soc/codecs/wm0010.c:411:2: warning:
format ‘%d’ expects argument of type ‘int’,
but argument 4 has type ‘size_t’ [-Wformat]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm0010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 0274f04a940a..f8d6c31db870 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c | |||
@@ -408,7 +408,7 @@ static int wm0010_boot(struct snd_soc_codec *codec) | |||
408 | wm0010->state = WM0010_BOOTROM; | 408 | wm0010->state = WM0010_BOOTROM; |
409 | spin_unlock_irqrestore(&wm0010->irq_lock, flags); | 409 | spin_unlock_irqrestore(&wm0010->irq_lock, flags); |
410 | 410 | ||
411 | dev_dbg(codec->dev, "Downloading %d byte stage 2 loader\n", fw->size); | 411 | dev_dbg(codec->dev, "Downloading %zu byte stage 2 loader\n", fw->size); |
412 | 412 | ||
413 | /* Copy to local buffer first as vmalloc causes problems for dma */ | 413 | /* Copy to local buffer first as vmalloc causes problems for dma */ |
414 | img = kzalloc(fw->size, GFP_KERNEL); | 414 | img = kzalloc(fw->size, GFP_KERNEL); |