mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] ASoc: simple-card-utils: add __printf attribute
Date: Mon, 22 Aug 2016 15:06:05 +0200	[thread overview]
Message-ID: <7bb40eff-d1ae-4739-0396-6f24089416f5@m4x.org> (raw)
In-Reply-To: <20160806095837.25885-1-nicolas.iooss_linux@m4x.org>

Hello,

After I sent the following patch a few weeks ago, I have not received
any feedback. Could you please review it?

Thanks,
Nicolas

On 06/08/16 11:58, Nicolas Iooss wrote:
> asoc_simple_card_set_dailink_name() uses devm_kvasprintf() to format
> some of its arguments.  Adding a __printf attribute to this function
> makes it possible to detect at compile-time errors related to format
> strings.
> 
> Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
> ---
>  include/sound/simple_card_utils.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h
> index 86088aed9002..3207b1a70d38 100644
> --- a/include/sound/simple_card_utils.h
> +++ b/include/sound/simple_card_utils.h
> @@ -27,6 +27,7 @@ int asoc_simple_card_parse_daifmt(struct device *dev,
>  				  struct device_node *codec,
>  				  char *prefix,
>  				  unsigned int *retfmt);
> +__printf(3, 4)
>  int asoc_simple_card_set_dailink_name(struct device *dev,
>  				      struct snd_soc_dai_link *dai_link,
>  				      const char *fmt, ...);
> 

  reply	other threads:[~2016-08-22 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-06  9:58 Nicolas Iooss
2016-08-22 13:06 ` Nicolas Iooss [this message]
2016-08-22 13:13   ` Takashi Iwai
2016-08-22 13:25     ` Nicolas Iooss
2016-08-22 13:44       ` Takashi Iwai

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=7bb40eff-d1ae-4739-0396-6f24089416f5@m4x.org \
    --to=nicolas.iooss_linux@m4x.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®