Re: [PATCH] EDAC/ie31200: work around false positive build warning

From: Luck, Tony
Date: Thu Feb 20 2025 - 20:14:52 EST


> > It looks like gcc-14 isn't smart enough to recognize that this is a false positive build warning :-).
> > Actually, the dim_info[][] array is always initialized by populate_dimm_info().
> >
> > > see why the compiler gets confused by the two loops.
> > >
> > > Instead, rework the two nested loops to only read the addr_decode registers
> > > and then keep only one instance of the dimm info structure.
> > >
> > > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
>
> Seems fine with the comment adjustment.
>
> Thanks.
>
> Acked-by: Jason Baron <jbaron@xxxxxxxxxx>

Applied (with comment adjustment) to RAS tree edac-drivers branch

Thanks

-Tony