From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Colin King <colin.king@canonical.com>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] drivers: base: remove need for a temporary string for the node name
Date: Thu, 06 Dec 2018 14:57:48 +0000 [thread overview]
Message-ID: <20181206145748.GA8360@kroah.com> (raw)
In-Reply-To: <20181129180844.31138-1-colin.king@canonical.com>
On Thu, Nov 29, 2018 at 06:08:44PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Currently the node name is being formatting into a temporary string
> node_name, however, kobject_init_and_add allows one to format up
> a node name, so use that instead. This removes the need for the
> node_name string and also cleans up the following warning:
>
> Fixes clang warning:
> warning: format string is not a string literal (potentially
> insecure) [-Wformat-security]
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> drivers/base/swnode.c | 5 +----
I don't know where this file comes from. It's not in my
driver-core-next branch, who is creating it?
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Colin King <colin.king@canonical.com>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] drivers: base: remove need for a temporary string for the node name
Date: Thu, 6 Dec 2018 15:57:48 +0100 [thread overview]
Message-ID: <20181206145748.GA8360@kroah.com> (raw)
In-Reply-To: <20181129180844.31138-1-colin.king@canonical.com>
On Thu, Nov 29, 2018 at 06:08:44PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Currently the node name is being formatting into a temporary string
> node_name, however, kobject_init_and_add allows one to format up
> a node name, so use that instead. This removes the need for the
> node_name string and also cleans up the following warning:
>
> Fixes clang warning:
> warning: format string is not a string literal (potentially
> insecure) [-Wformat-security]
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> drivers/base/swnode.c | 5 +----
I don't know where this file comes from. It's not in my
driver-core-next branch, who is creating it?
thanks,
greg k-h
next prev parent reply other threads:[~2018-12-06 14:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-29 18:08 [PATCH][next] drivers: base: remove need for a temporary string for the node name Colin King
2018-12-06 14:57 ` Greg Kroah-Hartman [this message]
2018-12-06 14:57 ` Greg Kroah-Hartman
2018-12-06 15:23 ` Rafael J. Wysocki
2018-12-06 15:23 ` Rafael J. Wysocki
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=20181206145748.GA8360@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=colin.king@canonical.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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.