From: Takashi Iwai Date: Mon, 27 Sep 2010 06:13:25 +0000 (+0200) Subject: ASoC: Fix a compile warning for printk format X-Git-Tag: v2.6.37-rc1~126^2~1^2~62 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=cf1ff5011614cad540fa872b46552d078b510c38;p=net-next-2.6.git ASoC: Fix a compile warning for printk format sound/soc/codecs/wm8985.c: In function 'wm8985_hw_params': sound/soc/codecs/wm8985.c:731:2: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' Actually the variable is fine as int. Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index b94af96f2bd..6658c9440e0 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c @@ -644,7 +644,7 @@ static int wm8985_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) { - size_t i; + int i; struct snd_soc_codec *codec; struct wm8985_priv *wm8985; u16 blen, srate_idx;