mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Kees Cook <keescook@chromium.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] USB: Add format_template attribute to struct usb_class_driver
Date: Mon, 13 Nov 2017 15:00:38 +0100	[thread overview]
Message-ID: <20171113140038.GA3436@kroah.com> (raw)
In-Reply-To: <20171112211911.27779-5-linux@rasmusvillemoes.dk>

On Sun, Nov 12, 2017 at 10:19:11PM +0100, Rasmus Villemoes wrote:
> This serves as human-readable documentation as well as allowing the
> format_template plugin to complain about any static initializers of this
> struct member that do not have the same set of printf specifiers.
> 
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> ---
>  include/linux/usb.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/usb.h b/include/linux/usb.h
> index 9c63792a8134..8d48c0cd1c01 100644
> --- a/include/linux/usb.h
> +++ b/include/linux/usb.h
> @@ -1236,7 +1236,7 @@ extern struct bus_type usb_bus_type;
>   * parameters used for them.
>   */
>  struct usb_class_driver {
> -	char *name;
> +	char *name __format_template("foobar_%d");
>  	char *(*devnode)(struct device *dev, umode_t *mode);
>  	const struct file_operations *fops;
>  	int minor_base;


Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

      reply	other threads:[~2017-11-13 14:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12 21:19 [PATCH 1/5] plugins: implement format_template attribute Rasmus Villemoes
2017-11-12 21:19 ` [PATCH 2/5] hwmon: (applesmc) Apply " Rasmus Villemoes
2017-11-12 21:19 ` [PATCH 3/5] staging: speakup: " Rasmus Villemoes
2017-11-13 14:00   ` Greg Kroah-Hartman
2017-11-12 21:19 ` [PATCH 4/5] linux/smpboot.h: " Rasmus Villemoes
2017-11-12 23:01   ` Thomas Gleixner
2017-11-12 21:19 ` [PATCH 5/5] USB: Add format_template attribute to struct usb_class_driver Rasmus Villemoes
2017-11-13 14:00   ` Greg Kroah-Hartman [this message]

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=20171113140038.GA3436@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    /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®