aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <[email protected]>2021-06-02 08:43:28 +0900
committerMark Brown <[email protected]>2021-06-03 13:56:38 +0100
commit2cdfe6520c939aff60bf78be2fc682e7635d0618 (patch)
tree02f8964f483c428aea01e6277f419fbefa555142
parentae624a38be37e1a3127d5fa32c996e09974bb88d (diff)
ASoC: rsnd: adg: supply __printf(x, y) formatting for dbg_msg()
Fixes the following W=1 kernel build warning(s): sound/soc/sh/rcar/adg.c: In function 'dbg_msg': sound/soc/sh/rcar/adg.c:594:2: warning: function 'dbg_msg' might \ be a candidate for 'gnu_printf' format attribute\ [-Wsuggest-attribute=format] Fixes: 1f9c82b5ab83 ("ASoC: rsnd: add debugfs support") Reported-by: kernel test robot <[email protected]> Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/sh/rcar/adg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c
index 78916332c22f..390d5e22fbb8 100644
--- a/sound/soc/sh/rcar/adg.c
+++ b/sound/soc/sh/rcar/adg.c
@@ -584,6 +584,7 @@ rsnd_adg_get_clkout_end:
}
#if defined(DEBUG) || defined(CONFIG_DEBUG_FS)
+__printf(3, 4)
static void dbg_msg(struct device *dev, struct seq_file *m,
const char *fmt, ...)
{