[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200507132828.1af39b80@gandalf.local.home>
Date: Thu, 7 May 2020 13:28:28 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Valentin Schneider <valentin.schneider@....com>
Cc: 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:17:36 +0100
Valentin Schneider <valentin.schneider@....com> wrote:
> On 07/05/20 12:06, Jason Yan wrote:
> > Fix the following coccicheck warning:
> >
> > kernel/sched/fair.c:9375:9-10: WARNING: return of 0/1 in function
> > 'voluntary_active_balance' with return type bool
> >
>
> It's perfectly safe to return 0/1 in a boolean function; that said seeing
> as this is the second attempt at "fixing" this I'm tempted to say we should
> pick it up...
>
Actually, I disagree. We should push back on the check to not warn on 0/1
of boolean. Why is this a warning?
Fixes like this just add noise to the git history.
-- Steve
Powered by blists - more mailing lists