ASoC: Use __printf markup to silence compiler
authorMathieu Malaterre <malat@debian.org>
Wed, 23 Jan 2019 19:41:30 +0000 (20:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Feb 2019 14:15:18 +0000 (14:15 +0000)
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 <malat@debian.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c

index d31d295b540fcc5b00870454b5f814e405645ece..dea6fc2353e47b782de20808622c4db3eb2138ba 100644 (file)
@@ -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;