Skip to content

Commit 6252e85

Browse files
gmarullcarlescufi
authored andcommitted
arch: riscv: irq_manage: add missing PLIC header
Module uses RISC-V PLIC interrupt controller API without including the necessary headers. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 0addc80 commit 6252e85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/riscv/core/irq_manage.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include <zephyr/arch/riscv/csr.h>
1111
#include <zephyr/irq_multilevel.h>
1212

13+
#ifdef CONFIG_RISCV_HAS_PLIC
14+
#include <zephyr/drivers/interrupt_controller/riscv_plic.h>
15+
#endif
16+
1317
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
1418

1519
FUNC_NORETURN void z_irq_spurious(const void *unused)

0 commit comments

Comments
 (0)