[PATCH] irqchip/riscv-aplic: adapt to syscore API passing context data

Keke Ming ming.jvle at gmail.com
Fri Jan 2 01:37:41 PST 2026


On Wed, Dec 24, 2025 at 16:41:46 +0530, Sanjay Chitroda wrote:
> The RISC-V APLIC driver started preserving state across suspend/resume,
> but its syscore usage still assumed the old API. Building against
> linux-next after a97fbc3ee3e2 fails because the callbacks don’t receive
> the necessary driver context.

Tested this on riscv64 (cross-compiled on x86_64) using linux-next 
(next-20251219). Without this patch, the build fails with:

drivers/irqchip/irq-riscv-aplic-main.c:111:20: error: initialization of 
‘int (*)(void *)’ from incompatible pointer type ‘int (*)(void)’

This patch correctly fixes the compilation error by updating the APLIC 
driver to the new syscore API.

Tested-by: Keke Ming <ming.jvle at gmail.com>



More information about the linux-riscv mailing list