From: Wei Liu <wei.liu@kernel.org>
To: Michael Kelley <mhklinux@outlook.com>
Cc: Aditya Nagesh <adityanagesh@linux.microsoft.com>,
"adityanagesh@microsoft.com" <adityanagesh@microsoft.com>,
"kys@microsoft.com" <kys@microsoft.com>,
"haiyangz@microsoft.com" <haiyangz@microsoft.com>,
"wei.liu@kernel.org" <wei.liu@kernel.org>,
"decui@microsoft.com" <decui@microsoft.com>,
"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5] Drivers: hv: Cosmetic changes for hv.c and balloon.c
Date: Thu, 30 May 2024 02:45:18 +0000 [thread overview]
Message-ID: <ZlfoPlGF40dc8u4f@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <SN6PR02MB41572A8E15A990EB162C60FCD4F22@SN6PR02MB4157.namprd02.prod.outlook.com>
On Wed, May 29, 2024 at 04:29:17PM +0000, Michael Kelley wrote:
> From: Aditya Nagesh <adityanagesh@linux.microsoft.com> Sent: Wednesday, May 29, 2024 9:05 AM
> >
> > Fix issues reported by checkpatch.pl script in hv.c and
> > balloon.c
> > - Remove unnecessary parentheses
> > - Remove extra newlines
> > - Remove extra spaces
> > - Add spaces between comparison operators
> > - Remove comparison with NULL in if statements
> >
> > No functional changes intended
> >
> > Signed-off-by: Aditya Nagesh <adityanagesh@linux.microsoft.com>
> > Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
> > ---
> > [V5]
> > Rebase to hyperv-fixes
> >
> > [V4]
> > Fix Alignment issue and revert a line since 100 characters are allowed in a line
> >
> > [V3]
> > Fix alignment issues in multiline function parameters.
> >
> > [V2]
> > Change Subject from "Drivers: hv: Fix Issues reported by checkpatch.pl script"
> > to "Drivers: hv: Cosmetic changes for hv.c and balloon.c"
> > drivers/hv/hv.c | 37 +++++++-------
> > drivers/hv/hv_balloon.c | 105 ++++++++++++++--------------------------
> > 2 files changed, 53 insertions(+), 89 deletions(-)
> >
>
> [snip]
>
> > @@ -999,21 +984,14 @@ static void hot_add_req(struct work_struct *dummy)
> > rg_start = dm->ha_wrk.ha_region_range.finfo.start_page;
> > rg_sz = dm->ha_wrk.ha_region_range.finfo.page_cnt;
> >
> > - if ((rg_start == 0) && (!dm->host_specified_ha_region)) {
> > + if (rg_start == 0 && !dm->host_specified_ha_region) {
> > /*
> > - * The host has not specified the hot-add region.
> > * Based on the hot-add page range being specified,
> > - * compute a hot-add region that can cover the pages
> > - * that need to be hot-added while ensuring the alignment
> > - * and size requirements of Linux as it relates to hot-add.
> > - */
> > - rg_start = ALIGN_DOWN(pg_start, ha_pages_in_chunk);
> > - rg_sz = ALIGN(pfn_cnt, ha_pages_in_chunk);
>
> Hmmm. The above is not a cosmetic change. Looks like this
> delta was erroneously introduced in the v5 version. It wasn't
> there in v4.
This also breaks the build, since now the comment is not terminated.
Please fix this and resubmit.
In general, you should always build test your code before submission.
Thanks,
Wei.
>
> Everything else LGTM.
>
> Michael
next prev parent reply other threads:[~2024-05-30 2:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 16:04 [PATCH v5] Drivers: hv: Cosmetic changes for hv.c and balloon.c Aditya Nagesh
2024-05-29 16:29 ` Michael Kelley
2024-05-30 2:45 ` Wei Liu [this message]
2024-05-30 1:06 ` kernel test robot
2024-05-30 8:12 ` kernel test robot
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=ZlfoPlGF40dc8u4f@liuwe-devbox-debian-v2 \
--to=wei.liu@kernel.org \
--cc=adityanagesh@linux.microsoft.com \
--cc=adityanagesh@microsoft.com \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhklinux@outlook.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 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.