From: Stefano Brivio <sbrivio@redhat.com>
To: Sam Muhammed <jane.pnx9@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Julia Lawall <julia.lawall@inria.fr>,
outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 4/6] Staging: kpc2000: kpc_dma: Use spaces around operators.
Date: Mon, 30 Mar 2020 16:29:36 +0200 [thread overview]
Message-ID: <20200330162936.05c283a4@elisabeth> (raw)
In-Reply-To: <65ecf86be7e14f5c3fec03acb4ff51c86ab211ee.camel@gmail.com>
On Mon, 30 Mar 2020 07:55:45 -0400
Sam Muhammed <jane.pnx9@gmail.com> wrote:
> On Mon, 2020-03-30 at 03:02 +0200, Stefano Brivio wrote:
> > On Wed, 25 Mar 2020 08:57:30 -0400
> > Sam Muhammed <jane.pnx9@gmail.com> wrote:
> >
> > > On Wed, 2020-03-25 at 13:36 +0100, Greg Kroah-Hartman wrote:
> > > > On Wed, Mar 25, 2020 at 04:00:36AM -0400, Sam Muhammed wrote:
> > > > > On Tue, 2020-03-24 at 22:22 +0100, Julia Lawall wrote:
> > > > > >
> > > > > > On Tue, 24 Mar 2020, Sam Muhammed wrote:
> > > > > >
> > > > > > > Cleanup Checkpatch.pl CHECKs about missing
> > > > > > > spaces around multiple operators.
> > > > > > >
> > > > > > > Signed-off-by: Sam Muhammed <jane.pnx9@gmail.com>
> > > > > > > ---
> > > > > > > drivers/staging/kpc2000/kpc_dma/fileops.c | 12 ++++++------
> > > > > > > 1 file changed, 6 insertions(+), 6 deletions(-)
> > > > > > >
> > > > > > > diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c
> > > > > > > index d93097ed781c..e599ae1bdfd0 100644
> > > > > > > --- a/drivers/staging/kpc2000/kpc_dma/fileops.c
> > > > > > > +++ b/drivers/staging/kpc2000/kpc_dma/fileops.c
> > > > > > > @@ -19,7 +19,7 @@ static inline
> > > > > > > unsigned int count_pages(unsigned long iov_base, size_t iov_len)
> > > > > > > {
> > > > > > > unsigned long first = (iov_base & PAGE_MASK) >> PAGE_SHIFT;
> > > > > > > - unsigned long last = ((iov_base+iov_len-1) & PAGE_MASK) >> PAGE_SHIFT;
> > > > > > > + unsigned long last = ((iov_base + iov_len - 1) & PAGE_MASK) >> PAGE_SHIFT;
> > > > > >
> > > > > > It seems that the & operators were lined up before and that is not the
> > > > > > case any more.
> > > > > >
> > > > >
> > > > > Yes, why they were aligned anyways?
> > > >
> > > > Because it is easier to understand the code that way, don't you think?
> > > >
> > > My bad, iam not used to see the patterns yes, so aligning the first
> > > statement to the second would be a different change? or since a change
> > > is made anyways they both would go together?
> >
> > I think yes, this should be a single patch, because:
> >
> > 1. realigning the first line is needed only as you edit the second one,
> >
> > 2. with two patches the alignment would be "broken" after the first one
> > (this is especially a hard rule with build failures and warnings, but
> > the concept usually applies to these cases as well)
> >
> > ...however, why would you ask this question and anyway re-post the
> > series 89 minutes later? Mind that this is a good way to get your
> > patches ignored by some maintainers.
> >
>
> But reading through Julia's comment about it and re-considering the
> change, my question was already answered with Julia's comment as of
> _if i make a change, i should keep the style and not break the
> alignment_
>
> So i probably shouldn't ask the question from the first place and read
> Julia's comment more carefully. :)
Fine, I really don't mind that part... but it would be nice if you
could answer your question yourself on the list, so that:
1. other applicants benefit from it
2. nobody has to wonder if you're still waiting for an answer (my case
here)
--
Stefano
next prev parent reply other threads:[~2020-03-30 14:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 21:09 [PATCH 0/6] Staging: kpc2000: kpc_dma: Clear Misc Checkpatch.pl WARNINGS Sam Muhammed
2020-03-24 21:09 ` [PATCH 1/6] Staging: kpc2000: kpc_dma: Remove comparison to NULL Sam Muhammed
2020-03-24 21:09 ` [PATCH 2/6] Staging: kpc2000: kpc_dma: Use sizeof(*var) in kzalloc() Sam Muhammed
2020-03-24 21:23 ` [Outreachy kernel] " Julia Lawall
2020-03-24 21:24 ` Julia Lawall
2020-03-25 8:10 ` Sam Muhammed
2020-03-25 13:01 ` Julia Lawall
2020-03-24 21:09 ` [PATCH 3/6] Staging: kpc2000: kpc_dma: Remove unnecessary braces Sam Muhammed
2020-03-24 21:23 ` [Outreachy kernel] " Julia Lawall
2020-03-24 21:09 ` [PATCH 4/6] Staging: kpc2000: kpc_dma: Use spaces around operators Sam Muhammed
2020-03-24 21:22 ` [Outreachy kernel] " Julia Lawall
2020-03-25 8:00 ` Sam Muhammed
2020-03-25 12:36 ` Greg Kroah-Hartman
2020-03-25 12:57 ` Sam Muhammed
2020-03-30 1:02 ` Stefano Brivio
2020-03-30 11:55 ` Sam Muhammed
2020-03-30 14:29 ` Stefano Brivio [this message]
2020-03-24 21:09 ` [PATCH 5/6] Staging: kpc2000: kpc_dma: Include the preferred header Sam Muhammed
2020-03-24 21:09 ` [PATCH 6/6] Staging: kpc2000: kpc_dma: Use the SPDK comment style Sam Muhammed
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=20200330162936.05c283a4@elisabeth \
--to=sbrivio@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jane.pnx9@gmail.com \
--cc=julia.lawall@inria.fr \
--cc=outreachy-kernel@googlegroups.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.