From: "Rafael J. Wysocki" <rafael@kernel.org>
To: chenxiang <chenxiang66@hisilicon.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Pavel Machek <pavel@ucw.cz>, John Garry <john.garry@huawei.com>,
Linux PM <linux-pm@vger.kernel.org>,
Linuxarm <linuxarm@huawei.com>
Subject: Re: [PATCH] hibernate: fix some format issues
Date: Thu, 9 Jul 2020 14:36:44 +0200 [thread overview]
Message-ID: <CAJZ5v0i01e1OUZHEohyMio-u0rEicMC2sxTvKUyGtn3XWNBfKA@mail.gmail.com> (raw)
In-Reply-To: <1592816953-204427-1-git-send-email-chenxiang66@hisilicon.com>
On Mon, Jun 22, 2020 at 11:13 AM chenxiang <chenxiang66@hisilicon.com> wrote:
>
> From: Xiang Chen <chenxiang66@hisilicon.com>
>
> In hibernate.c, some places lack of spaces while some places have
> redundant spaces. So fix them.
>
> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Applied as 5.9 material under the "PM: hibernate: fix white space in a
few places" subject, thanks!
> ---
> kernel/power/hibernate.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
> index 02ec716..5714f51 100644
> --- a/kernel/power/hibernate.c
> +++ b/kernel/power/hibernate.c
> @@ -1062,7 +1062,7 @@ power_attr(disk);
> static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr,
> char *buf)
> {
> - return sprintf(buf,"%d:%d\n", MAJOR(swsusp_resume_device),
> + return sprintf(buf, "%d:%d\n", MAJOR(swsusp_resume_device),
> MINOR(swsusp_resume_device));
> }
>
> @@ -1162,7 +1162,7 @@ static ssize_t reserved_size_store(struct kobject *kobj,
>
> power_attr(reserved_size);
>
> -static struct attribute * g[] = {
> +static struct attribute *g[] = {
> &disk_attr.attr,
> &resume_offset_attr.attr,
> &resume_attr.attr,
> @@ -1190,7 +1190,7 @@ static int __init resume_setup(char *str)
> if (noresume)
> return 1;
>
> - strncpy( resume_file, str, 255 );
> + strncpy(resume_file, str, 255);
> return 1;
> }
>
> --
> 2.8.1
>
prev parent reply other threads:[~2020-07-09 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 9:09 [PATCH] hibernate: fix some format issues chenxiang
2020-07-09 12:36 ` Rafael J. Wysocki [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=CAJZ5v0i01e1OUZHEohyMio-u0rEicMC2sxTvKUyGtn3XWNBfKA@mail.gmail.com \
--to=rafael@kernel.org \
--cc=chenxiang66@hisilicon.com \
--cc=john.garry@huawei.com \
--cc=linux-pm@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=pavel@ucw.cz \
/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;
as well as URLs for NNTP newsgroup(s).