mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: Use __printf markup to silence compiler
@ 2019-01-23 19:41 Mathieu Malaterre
  2019-02-12 14:21 ` Applied "ASoC: Use __printf markup to silence compiler" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2019-01-23 19:41 UTC (permalink / raw)
  To: Liam Girdwood
  Cc: Mathieu Malaterre, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	alsa-devel, linux-kernel

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 --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;
-- 
2.19.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-12 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-23 19:41 [PATCH] ASoC: Use __printf markup to silence compiler Mathieu Malaterre
2019-02-12 14:21 ` Applied "ASoC: Use __printf markup to silence compiler" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome