Re: [PATCH linux-next] kernel:fair: fix boolreturn.cocci warnings
From: Peter Zijlstra
Date: Tue Aug 24 2021 - 04:24:35 EST
On Tue, Aug 24, 2021 at 10:15:54AM +0200, Peter Zijlstra wrote:
> On Mon, Aug 23, 2021 at 11:23:59PM -0700, CGEL wrote:
> > From: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
> > ./kernel/sched/fair.c:9638:9-10:WARNING: return of 0/1 in function
> > 'imbalanced_active_balance' with return type bool
> > Return statements in functions returning bool should use true/false
> > instead of 1/0.
> > Generated by: scripts/coccinelle/misc/boolreturn.cocci
> > Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> > Signed-off-by: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
> *sigh*, another stupid robot sending stupid patches..
> /me goes create another mail filter...
Here, the hunk of sieve script, incase other people want to use it too.
#SCRIPTNAME: Zeal Robot
if body :text :contains "Reported-by: Zeal Robot <zealci@xxxxxxxxxx>"