mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Peter Zijlstra" <peterz@infradead.org>
Cc: "Josh Poimboeuf" <jpoimboe@kernel.org>,
	linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: new objtool warnings with gcc-14
Date: Wed, 07 Aug 2024 16:56:56 +0200	[thread overview]
Message-ID: <4afdfafc-ca43-4919-97e8-aefdb1feadcc@app.fastmail.com> (raw)
In-Reply-To: <20240807141801.GB31338@noisy.programming.kicks-ass.net>

On Wed, Aug 7, 2024, at 16:18, Peter Zijlstra wrote:
> On Wed, Aug 07, 2024 at 03:56:45PM +0200, Arnd Bergmann wrote:
>> I see some objtool warnings with gcc-14.2.0 that I don't show
>> up on gcc-14.1 or older:
>> 
>> vmlinux.o: warning: objtool: adis16260_write_raw() falls through to next function adxrs290_read_avail()
>> vmlinux.o: warning: objtool: adis16400_write_raw() falls through to next function adis16400_show_flash_count()
>> vmlinux.o: warning: objtool: x86_init_dev_msi_info+0x61: relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0
>> vmlinux.o: warning: objtool: rza1_irqc_probe+0x257: relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0
>> vmlinux.o: warning: objtool: .export_symbol+0x5908: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0
>> vmlinux.o: warning: objtool: .export_symbol+0x35b18: data relocation to !ENDBR: stpcpy+0x0
>
> https://gcc.gnu.org/PR116174
>
> As such, I've been blissfully ignoring all GCC-14 issues.

Ok. I can confirm that reverting b644126237a1 ("Align tight&hot
loop without considering max skipping bytes.") in gcc-14.2 avoids
the ENDBR issue.

The first two warnings in the list, about adis16260_write_raw()
and adis16400_write_raw() apparently already show up with older
compilers, so those are unrelated.

The problem here is the unreachable() in code like:

      adis_dev_auto_scoped_lock(adis) {
             if (t >= 0x0A)
                      adis->spi->max_speed_hz = ADIS16260_SPI_SLOW;
             else
                      adis->spi->max_speed_hz = ADIS16260_SPI_FAST;
             return __adis_write_reg_8(adis, ADIS16260_SMPL_PRD, t);
      }
      unreachable();

     Arnd

      reply	other threads:[~2024-08-07 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 13:56 Arnd Bergmann
2024-08-07 14:18 ` Peter Zijlstra
2024-08-07 14:56   ` Arnd Bergmann [this message]

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=4afdfafc-ca43-4919-97e8-aefdb1feadcc@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    /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

all inboxes | Powered by JetHome®