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

2020-05-08 Thread Julia Lawall
On Fri, 8 May 2020, Peter Zijlstra wrote: > On Thu, May 07, 2020 at 07:06:25PM +0800, 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 > > That's not a

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

2020-05-08 Thread Rasmus Villemoes
On 08/05/2020 10.16, Peter Zijlstra wrote: > On Thu, May 07, 2020 at 07:06:25PM +0800, 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 > > That's not a warning,

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

2020-05-08 Thread Peter Zijlstra
On Thu, May 07, 2020 at 07:06:25PM +0800, 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 That's not a warning, that's a broken cocinelle script, which if these

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

2020-05-07 Thread Joe Perches
On Thu, 2020-05-07 at 15:45 -0400, Steven Rostedt wrote: > On Thu, 07 May 2020 12:06:56 -0700 > Joe Perches 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. > > >

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

2020-05-07 Thread Steven Rostedt
On Thu, 07 May 2020 12:06:56 -0700 Joe Perches 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

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

2020-05-07 Thread Joe Perches
On Thu, 2020-05-07 at 14:45 -0400, Steven Rostedt wrote: > On Thu, 07 May 2020 10:55:33 -0700 > Joe Perches wrote: > > > > If anything, we can teach people to try to understand their fixes, to see > > > if something is really a fix or not. Blindly accepting changes like this, > > > is no

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

2020-05-07 Thread Steven Rostedt
On Thu, 07 May 2020 10:55:33 -0700 Joe Perches wrote: > > If anything, we can teach people to try to understand their fixes, to see > > if something is really a fix or not. Blindly accepting changes like this, > > is no different than blindly submitting patches because some tool says its > > an

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

2020-05-07 Thread Joe Perches
On Thu, 2020-05-07 at 13:30 -0400, Steven Rostedt wrote: > On Thu, 7 May 2020 13:28:28 -0400 > Steven Rostedt wrote: > > > > 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 > > >

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

2020-05-07 Thread Valentin Schneider
On 07/05/20 18:30, Steven Rostedt wrote: > On Thu, 7 May 2020 13:28:28 -0400 > Steven Rostedt wrote: > >> > 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... >> > >> >>

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

2020-05-07 Thread Steven Rostedt
On Thu, 7 May 2020 13:28:28 -0400 Steven Rostedt wrote: > > 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

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

2020-05-07 Thread Steven Rostedt
On Thu, 07 May 2020 12:17:36 +0100 Valentin Schneider 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

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

2020-05-07 Thread Valentin Schneider
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

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

2020-05-07 Thread Jason Yan
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 Signed-off-by: Jason Yan --- kernel/sched/fair.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git