summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-01-23 20:41:30 +0100
committerMark Brown <broonie@kernel.org>2019-02-12 14:15:18 +0000
commit595d2f74cd3caedb704a118bd09c1b4dfbfc0ec0 (patch)
tree082559c42af893593b6f42f8cfb097d739ac28a7 /sound/soc/soc-dapm.c
parent674f9abd094552dc297a2afd0cb72d30aec539a3 (diff)
downloadlinux-595d2f74cd3caedb704a118bd09c1b4dfbfc0ec0.tar.bz2
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 <malat@debian.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c1
1 files changed, 1 insertions, 0 deletions
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;