linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-m68k <linux-m68k@lists.linux-m68k.org>,
	Yury Norov <yury.norov@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kisskb: FAILED linux-next/m68k-allmodconfig/m68k-gcc8 Tue Jan 25, 18:24
Date: Tue, 25 Jan 2022 13:55:16 +0100	[thread overview]
Message-ID: <CAMuHMdWUdDxfWpuD6nuZUhTUsfWTOtxHVjogj1_QSjcds0uKww@mail.gmail.com> (raw)
In-Reply-To: <CAK8P3a2Qik6A9ts0J_oXP-LMbqA0-kvZ4E9=bgLx5spxvLuC8w@mail.gmail.com>

Hi Arnd,

On Tue, Jan 25, 2022 at 1:49 PM Arnd Bergmann <arnd@arndb.de> wrote:
> On Tue, Jan 25, 2022 at 9:47 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Tue, Jan 25, 2022 at 8:31 AM <noreply@ellerman.id.au> wrote:
> > > FAILED linux-next/m68k-allmodconfig/m68k-gcc8 Tue Jan 25, 18:24
> > >
> > > http://kisskb.ellerman.id.au/kisskb/buildresult/14688953/
> > >
> > > Commit:   Add linux-next specific files for 20220125
> > >           d25ee88530253138d0b20d43511ca5acbda4e9f7
> > > Compiler: m68k-linux-gcc (GCC) 8.1.0 / GNU ld (GNU Binutils) 2.30
> > >
> > > Possible errors
> > > ---------------
> > >
> > > arch/m68k/include/asm/bitops.h:329:20: error: array subscript 2 is above array bounds of 'long unsigned int[1]' [-Werror=array-bounds]
> > > cc1: all warnings being treated as errors
> > > make[4]: *** [scripts/Makefile.build:289: drivers/net/ipa/ipa_mem.o] Error 1
> > > make[3]: *** [scripts/Makefile.build:572: drivers/net/ipa] Error 2
> > > make[2]: *** [scripts/Makefile.build:572: drivers/net] Error 2
> > > make[1]: *** [Makefile:1965: drivers] Error 2
> > > make: *** [Makefile:226: __sub-make] Error 2
> > >
> > > No warnings found in log.
> >
> > The code that causes this is drivers/net/ipa/ipa_mem.c:ipa_mem_valid():
> >
> >         DECLARE_BITMAP(regions, IPA_MEM_COUNT) = { };
> >         ...
> >         for_each_clear_bit(mem_id, regions, IPA_MEM_COUNT) {
> >                 if (ipa_mem_id_required(ipa, mem_id))
> >                         dev_err(dev, "required memory region %u missing\n",
> >                                 mem_id);
> >         }
> >
> > This only happens with gcc-8, not with gcc-9, so it might be a
> > compiler bug. I don't see anything wrong with c:ipa_mem_valid()
> > nor with m68k's find_first_zero_bit().
>
> I've seen problems with warnings like this when gcc only partially
> inlines one of the functions. Does it go away if you mark find_next_bit()
> and find_first_bit() as __always_inline?

Thanks for the suggestio, but it doesn't make a difference.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  reply	other threads:[~2022-01-25 13:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220125073137.1.83124@7e6451f583e7>
2022-01-25  8:47 ` kisskb: FAILED linux-next/m68k-allmodconfig/m68k-gcc8 Tue Jan 25, 18:24 Geert Uytterhoeven
2022-01-25 12:49   ` Arnd Bergmann
2022-01-25 12:55     ` Geert Uytterhoeven [this message]
2022-01-25 18:02   ` Yury Norov
2022-01-26  8:53     ` Kees Cook
2022-01-26  9:16       ` Geert Uytterhoeven
2022-01-26 12:25         ` Arnd Bergmann
2022-01-26 12:37           ` Geert Uytterhoeven
2022-01-26 15:25             ` Arnd Bergmann
2022-01-26 16:42           ` Kees Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMuHMdWUdDxfWpuD6nuZUhTUsfWTOtxHVjogj1_QSjcds0uKww@mail.gmail.com \
    --to=geert@linux-m68k.org \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).