Re: [PATCH peterz-queue:sched/core] sched: fix build warning with W=1

From: Peter Zijlstra
Date: Sat Sep 11 2021 - 07:57:40 EST


On Sat, Sep 11, 2021 at 08:25:05AM +0000, Yafang Shao wrote:
> kernel test robot reported some build warnings with W=1 as below,
>
> kernel/sched/fair.c:892:34: warning: variable 'stats' set but not used
> kernel/sched/core.c:10238:42: warning: variable 'stats' set but not used
> kernel/sched/fair.c:893:29: warning: variable 'p' set but not used
> kernel/sched/rt.c:1292:29: warning: variable 'p' set but not used
> kernel/sched/deadline.c:1486:34: warning: variable 'stats' set but not used
> arch/nds32/include/asm/current.h:10:13: warning: variable '$r25' set but not used

Yeah, I got the mails... :-)

I'll need it per patch tho, so that I can fix the individual commits.
Let me go do that. Thanks for looking at this.