Re: [GIT PULL] hwmon updates for v5.20
From: Ingo Molnar
Date: Mon Aug 08 2022 - 06:56:18 EST
* Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On Sun, Aug 07, 2022 at 09:45:08AM -0700, Linus Torvalds wrote:
> > Added Kees - this *looks* like it's a compiler bug.
> >
> > On Sun, Aug 7, 2022 at 3:07 AM Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> > >
> > > Just a quick build regression report, i386 allmodconfig fails to build due
> > > to a 'string overread' compiler warning in drivers/hwmon/lm90.o:
> >
> > I tried to see it here with gcc-12.1, but it's not triggering, so it's
> > presumably compiler-dependent.
> >
>
> I don't see it with gcc 11.3. either, but I do indeed see the problem
> with gcc 11.2.
Yeah, I'm seeing it with GCC 11.2:
gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
> The problem is in lm90_detect_nuvoton() which returns ERR_PTR(-ENODEV)
> instead of NULL on error. I'll send a patch.
Thanks!
Ingo