Subject: [REGRESSION] next/master: (build) initialization of ‘int (*)(void *)’ from incompatible pointer type...

From: KernelCI bot <[email-masked]>
Date: Wed, 17 Dec 2025 04:59:05 -0000

Hello,

New build issue found on next/master:

---
 initialization of ‘int (*)(void *)’ from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types] in drivers/irqchip/irq-riscv-aplic-main.o (drivers/irqchip/irq-riscv-aplic-main.c) [logspec:kbuild,kbuild.compiler.error]
---

- dashboard: https://d.kernelci.org/i/maestro:ed08c10e7ce8b2654d125d029bb2aac6dc72096d
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- commit HEAD:  12b95d29eb979e5c4f4f31bb05817bc935c52050
- tags: next-20251217

Please include the KernelCI tag when submitting a fix:

Reported-by: kernelci.org bot <[email-masked]>

Log excerpt:
=====================================================
drivers/irqchip/irq-riscv-aplic-main.c:111:20: error: initialization of ‘int (*)(void *)’ from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
  111 |         .suspend = aplic_syscore_suspend,
      |                    ^~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-riscv-aplic-main.c:111:20: note: (near initialization for ‘aplic_syscore_ops.suspend’)
drivers/irqchip/irq-riscv-aplic-main.c:112:19: error: initialization of ‘void (*)(void *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  112 |         .resume = aplic_syscore_resume,
      |                   ^~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-riscv-aplic-main.c:112:19: note: (near initialization for ‘aplic_syscore_ops.resume’)
drivers/irqchip/irq-riscv-aplic-main.c: In function ‘aplic_probe’:
drivers/irqchip/irq-riscv-aplic-main.c:375:17: error: implicit declaration of function ‘register_syscore_ops’; did you mean ‘register_syscore’? [-Wimplicit-function-declaration]
  375 |                 register_syscore_ops(&aplic_syscore_ops);
      |                 ^~~~~~~~~~~~~~~~~~~~
      |                 register_syscore

=====================================================

# Builds where the incident occurred:

## defconfig on (riscv):
- compiler: gcc-14
- config: https://files.kernelci.org/kbuild-gcc-14-riscv-build-only-69422a0bcbfd84c3cdbdaaa0/.config
- dashboard: https://d.kernelci.org/build/maestro:69422a0bcbfd84c3cdbdaaa0

## defconfig+allnoconfig on (riscv):
- compiler: clang-21
- config: https://files.kernelci.org/kbuild-clang-21-riscv-defconfig-694229a2cbfd84c3cdbdaa14/.config
- dashboard: https://d.kernelci.org/build/maestro:694229a2cbfd84c3cdbdaa14

#kernelci issue maestro:ed08c10e7ce8b2654d125d029bb2aac6dc72096d

--
This is an experimental report format. Please send feedback in!
Talk to us at [email-masked]

Made with love by the KernelCI team - https://kernelci.org