From: Mathieu Malaterre Date: Wed, 23 Jan 2019 19:41:30 +0000 (+0100) Subject: ASoC: Use __printf markup to silence compiler X-Git-Tag: v5.1-rc5~20^2^2~157 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=595d2f74cd3caedb704a118bd09c1b4dfbfc0ec0;p=users%2Fjedix%2Flinux-maple.git ASoC: Use __printf markup to silence compiler Silence warnings (triggered at W=1) by adding relevant __printf attributes. sound/soc/soc-dapm.c:149:2: warning: function 'pop_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index d31d295b540f..dea6fc2353e4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -157,6 +157,7 @@ static void pop_wait(u32 pop_time) schedule_timeout_uninterruptible(msecs_to_jiffies(pop_time)); } +__printf(3, 4) static void pop_dbg(struct device *dev, u32 pop_time, const char *fmt, ...) { va_list args;