All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 1/5] ASoC: rsnd: adg: supply __printf(x, y) formatting for dbg_msg()
Date: 02 Jun 2021 08:43:28 +0900	[thread overview]
Message-ID: <87tumhi21r.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87v96xi22i.wl-kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

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 <lkp@intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/adg.c | 1 +
 1 file changed, 1 insertion(+)

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 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
 }
 
 #if defined(DEBUG) || defined(CONFIG_DEBUG_FS)
+__printf(3, 4)
 static void dbg_msg(struct device *dev, struct seq_file *m,
 				   const char *fmt, ...)
 {
-- 
2.25.1


  reply	other threads:[~2021-06-01 23:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 23:43 [PATCH 0/5] ASoC: rsnd: tidyup adg and header Kuninori Morimoto
2021-06-01 23:43 ` Kuninori Morimoto [this message]
2021-06-01 23:43 ` [PATCH 2/5] ASoC: rsnd: adg: tidyup rsnd_adg_get_clkin/out() parameter Kuninori Morimoto
2021-06-01 23:43 ` [PATCH 3/5] ASoC: rsnd: adg: use more simple method for null_clk Kuninori Morimoto
2021-06-01 23:44 ` [PATCH 4/5] ASoC: rsnd: adg: check return value for rsnd_adg_get_clkin/out() Kuninori Morimoto
2021-06-01 23:44 ` [PATCH 5/5] ASoC: rsnd: tidyup __rsnd_mod_xxx macro comments Kuninori Morimoto
2021-06-03 18:41 ` [PATCH 0/5] ASoC: rsnd: tidyup adg and header Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tumhi21r.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.