diff mbox series

ASoC: Use __printf markup to silence compiler

Message ID 20190123194131.19406-1-malat@debian.org (mailing list archive)
State Accepted
Commit 595d2f74cd3caedb704a118bd09c1b4dfbfc0ec0
Headers show
Series ASoC: Use __printf markup to silence compiler | expand

Commit Message

Mathieu Malaterre Jan. 23, 2019, 7:41 p.m. UTC
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>
---
 sound/soc/soc-dapm.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index a5178845065b..92a2e7dab5fe 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -133,6 +133,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;