Re: [bug report] cpumask: gcc 13.x emits compilation error on PowerPC

From: Brian Norris
Date: Mon Nov 11 2024 - 16:49:40 EST


Hi Nilay,

I'm responding here to try to help move things along for you, even
though I'm not a maintainer here and don't have a strong (nor
authoritative) opinion.

On Thu, Nov 7, 2024 at 5:38 AM Nilay Shroff <nilay@xxxxxxxxxxxxx> wrote:
> On 11/6/24 23:30, Brian Norris wrote:
> > IIUC, he was hoping for better compiler diagnostics to help out there.
> Hmm ok

AFAICT, things aren't moving so fast there, so it might wise to try to
silence the problem for now.

> > (Also, I imitated Thomas's .config notes from that report and couldn't
> > reproduce with my GCC 13.2.0.)
> >
> > I also happen to see there are a few scattered instances of either
> > disabling or working around -Wstringop-overread false positives in the
> > tree today.
> >
> So shall we wait until we get better diagnostics from GCC or can we bypass this
> error temporarily with either using __NO_FORTIFY (as I proposed in my another
> email) or disable -Wstringop-overread for kernel/padata.c file? Later when we
> find a better fix, we may then revert this change.

If this warning is causing pain, then we should probably bypass it. I
*think* there's less blast radius by simply disabling
-Wstringop-overread for this file, but I'm not completely sure.

Brian