Re: [PATCH 5.15 000/370] 5.15.111-rc2 review

From: Guenter Roeck
Date: Wed May 10 2023 - 15:09:26 EST


On Wed, May 10, 2023 at 09:46:14AM -0600, Daniel Díaz wrote:
> Hello!
>
> On Wed, 10 May 2023 at 01:43, Greg Kroah-Hartman
> <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> > On Tue, May 09, 2023 at 09:12:33AM -0600, Daniel Díaz wrote:
> > > Hello!
> > >
> > > On 08/05/23 21:26, Greg Kroah-Hartman wrote:
> > > > This is the start of the stable review cycle for the 5.15.111 release.
> > > > There are 370 patches in this series, all will be posted as a response
> > > > to this one. If anyone has any issues with these being applied, please
> > > > let me know.
> > > >
> > > > Responses should be made by Thu, 11 May 2023 03:05:05 +0000.
> > > > Anything received after that time might be too late.
> > > >
> > > > The whole patch series can be found in one patch at:
> > > > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.111-rc2.gz
> > > > or in the git tree and branch at:
> > > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
> > > > and the diffstat can be found below.
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > > New warnings are introduced for Arm, PowerPC, RISC-V:
> > >
> > > /builds/linux/kernel/sched/debug.c: In function 'print_cfs_group_stats':
> > > /builds/linux/kernel/sched/debug.c:465:41: warning: unused variable 'stats' [-Wunused-variable]
> > > struct sched_statistics *stats = __schedstats_from_se(se);
> > > ^~~~~
> >
> > Odd, and this isn't on other kernels too?
>
> Only on 5.15, not on the 6.x RC's. I'll share more info after my
> bisection is done.
>

Upstream has

struct sched_statistics *stats;
stats = __schedstats_from_se(se);

which may trick the compiler into believing that 'stats' is used.

Guenter