From: "Yeounsu Moon" <yyyynoom@gmail.com>
To: "Jakub Kicinski" <kuba@kernel.org>
Cc: "Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Paolo Abeni" <pabeni@redhat.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, "Andrew Lunn" <andrew@lunn.ch>
Subject: Re: [PATCH net v3 1/2] net: dlink: fix whitespace around function call
Date: Thu, 25 Sep 2025 01:38:34 +0900 [thread overview]
Message-ID: <DD16FJFQ33HG.7IJCUH79LHN8@gmail.com> (raw)
In-Reply-To: <20250917160642.2d21b529@kernel.org>
On Thu Sep 18, 2025 at 8:06 AM KST, Jakub Kicinski wrote:
> On Wed, 17 Sep 2025 03:33:04 +0900 Yeounsu Moon wrote:
>> Remove unnecessary whitespace between function names and the opening
>> parenthesis to follow kernel coding style.
>>
>> No functional change intended.
>
> please dont mix whitespace changes with fixes
Now that some time has passed, let me recap the situation,
(I initially wanted to summerize the message, but I'm concerned that my
English might cause misunderstanding. So I'll just quote the full
message instead. Sorry about that.)
------------
> > Please don't include white space changes with other changes. It makes
> > the patch harder to review.
> >
> > Andrew
> Thank you for reviewing!
>
> As you mentioned, it indeed becomes harder to see what the real changes
> are. I have a few questions related to that:
>
> 1. If I remove the whitespace between the funciton name and the
> parenthesis, `checkpatch.pl` will warn about it. Of course, I understand
> that we don't need to follow such rules in a mindessly robotic way.
>
> 2. However, I also read in the netdev FAQ that cleanup-only patches are
> discouraged. So I thought it would be better to include the cleanup
> together with the patch. But I see your point, and I'll be more careful
> not to send patches that cause such confusion in the future.
>
> 3. This is more of a personal curiosity: in that case, what would be the
> proper way to handle cleanup patches?
The problem with cleanup patches is that they are often done by
developers who don't have the hardware, and so don't do any
testing. White space changes like this a low risk, but other cleanup
patches are much more risky. So some cleanup patches end up breaking
stuff. We reviewers know this, and so put in more time looking at such
patches and try to make sure they are correct. But cleanup is
generally lower priority than new code. So to some extent, we prefer
the code is left 'dirty but working'.
In this case, you have the hardware. You are testing your change, so
we are much happier to accept such a cleanup patch as part of a
patchset fixing a real problem.
Please submit two patches in a patchset. The first patch fixes the
whitespace. The second fixes the memory problem with copy break. That
should be checkpatch clean. And mention in the commit message that
this has been tested on hardware.
------------
You and Andrew seems to share a similar point of view, and both are
quite reasonable. What do you think about this approach?
Yeousu Moon
next prev parent reply other threads:[~2025-09-24 16:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 18:33 [PATCH net v3 0/2] net: dlink: handle copy_thresh allocation Yeounsu Moon
2025-09-16 18:33 ` [PATCH net v3 1/2] net: dlink: fix whitespace around function call Yeounsu Moon
2025-09-17 23:06 ` Jakub Kicinski
2025-09-24 16:38 ` Yeounsu Moon [this message]
2025-09-24 23:12 ` Jakub Kicinski
2025-09-16 18:33 ` [PATCH net v3 2/2] net: dlink: handle copy_thresh allocation failure Yeounsu Moon
2025-09-16 19:36 ` Andrew Lunn
2025-09-17 23:09 ` Jakub Kicinski
2025-09-24 16:36 ` Yeounsu Moon
2025-09-24 23:11 ` Jakub Kicinski
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=DD16FJFQ33HG.7IJCUH79LHN8@gmail.com \
--to=yyyynoom@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 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).