[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200507154512.1065cba8@gandalf.local.home>
Date: Thu, 7 May 2020 15:45:12 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Joe Perches <joe@...ches.com>
Cc: Valentin Schneider <valentin.schneider@....com>,
Jason Yan <yanaijie@...wei.com>, mingo@...hat.com,
peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
bsegall@...gle.com, mgorman@...e.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sched/fair: Return true,false in
voluntary_active_balance()
On Thu, 07 May 2020 12:06:56 -0700
Joe Perches <joe@...ches.com> 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
Powered by blists - more mailing lists