[PATCH 0/4] mm: fix checkpatch.pl warnings in memcg v1 code

Keren Sun posted 4 patches 2 weeks, 5 days ago
mm/memcontrol-v1.c | 63 +++++++++++++++++-----------------------------
1 file changed, 23 insertions(+), 40 deletions(-)
[PATCH 0/4] mm: fix checkpatch.pl warnings in memcg v1 code
Posted by Keren Sun 2 weeks, 5 days ago
The patch series fixes 1 error and 27 warnings found by checkpatch.pl in the
memcg1 code.

Keren Sun (4):
  mm: fix quoted strings spliting across lines
  mm: Fix minor formatting issues for mm control
  mm: Prefer 'unsigned int' to bare use of 'unsigned'
  mm: Replace simple_strtoul() with kstrtoul()

 mm/memcontrol-v1.c | 63 +++++++++++++++++-----------------------------
 1 file changed, 23 insertions(+), 40 deletions(-)

-- 
2.47.0.163.g1226f6d8fa-goog
Re: [PATCH 0/4] mm: fix checkpatch.pl warnings in memcg v1 code
Posted by Matthew Wilcox 2 weeks, 5 days ago
On Mon, Nov 04, 2024 at 02:27:33PM -0800, Keren Sun wrote:
> The patch series fixes 1 error and 27 warnings found by checkpatch.pl in the
> memcg1 code.

Please do not do this.  Fixing checkpatch messages in existing code
is counterproductive.  Only run checkpatch on new code, and even then
take its suggestions with a grain of salt.
Re: [PATCH 0/4] mm: fix checkpatch.pl warnings in memcg v1 code
Posted by Roman Gushchin 2 weeks, 5 days ago
On Tue, Nov 05, 2024 at 12:31:36AM +0000, Matthew Wilcox wrote:
> On Mon, Nov 04, 2024 at 02:27:33PM -0800, Keren Sun wrote:
> > The patch series fixes 1 error and 27 warnings found by checkpatch.pl in the
> > memcg1 code.
> 
> Please do not do this.  Fixing checkpatch messages in existing code
> is counterproductive.  Only run checkpatch on new code, and even then
> take its suggestions with a grain of salt.

I do agree in general, but not in this case. These are nice cleanups
no matter what checkpatch.pl thinks of it :)

Thanks!