Re: [PATCH] sched/fair: Return true,false in voluntary_active_balance()

From: Steven Rostedt
Date: Thu May 07 2020 - 15:45:17 EST


On Thu, 07 May 2020 12:06:56 -0700
Joe Perches <joe@xxxxxxxxxxx> wrote:

> People describe changes as a "fix" all the time for stuff
> that isn't an actual fix for a logic defect but is instead
> an update to a particular style preference.
>
> Then the "fix" word causes the patch to be rather uselessly
> applied to stable trees by AUTOSEL.
>
> It's especially bad when the 'Fixes: <sha1> ("description")'
> tag is also added.
>
> It's a difficult thing to regulate and I don't believe a
> good mechanism would be possible to add to checkpatch or
> coccinelle to help isolate these things.
>
> git diff -w sometimes helps, but that's not really a thing
> that checkpatch could do.
>
> Any suggestions?

I'm unfamiliar with how the coccinelle script is used, but I thought there
was some discussion some time back to have checkpatch not produces the same
kinds of warnings to code as it does to patches.

A lot of useless updates were being submitted when people were running
checkpatch on existing kernel code and producing warnings that are not
worth "fixing", but something that new code should try to avoid.

Basically, I'm fine with a warning that tells you that 1/0 is used for
boolean on code being submitted, but we really shouldn't be encouraging
people to change the code that currently exists with such updates.

-- Steve