new objtool warnings with gcc-14
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 vmlinux.o: warning: objtool: hv_pci_msi_controller+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: stm32mp_exti_chip_direct+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: meson_gpio_irq_chip+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: mst_intc_chip+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: mchp_eic_chip+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: hpet_msi_controller+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: ioapic_ir_chip+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0 vmlinux.o: warning: objtool: ioapic_chip+0x58: data relocation to !ENDBR: irq_chip_retrigger_hierarchy+0x0
See attached .config for a test case and
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/14.2.0/x86_64-gcc-14.2.0-nolibc-x86_64-linux.tar.xz
for the toolchain I'm using if you don't have gcc-14.2 otherwise. There are more warnings like these in other configurations, but I assume they all need the same workaround.
Arnd
Quoted 9 lines · Arnd Bergmann
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 functionadxrs290_read_avail()vmlinux.o: warning: objtool:adis16400_write_raw()falls through to next functionadis16400_show_flash_count()vmlinux.o: warning: objtool:x86_init_dev_msi_info+0x61: relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool:rza1_irqc_probe+0x257: relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool: .export_symbol+0x5908: data relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool: .export_symbol+0x35b18: data relocation to !ENDBR:stpcpy+0x0
As such, I've been blissfully ignoring all GCC-14 issues.
Quoted 11 lines · Peter Zijlstra
Quoted 9 lines · Arnd Bergmann
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 functionadxrs290_read_avail()vmlinux.o: warning: objtool:adis16400_write_raw()falls through to next functionadis16400_show_flash_count()vmlinux.o: warning: objtool:x86_init_dev_msi_info+0x61: relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool:rza1_irqc_probe+0x257: relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool: .export_symbol+0x5908: data relocation to !ENDBR:irq_chip_retrigger_hierarchy+0x0vmlinux.o: warning: objtool: .export_symbol+0x35b18: data relocation to !ENDBR:stpcpy+0x0
Quoted 3 lines
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