From 1bab0fba14f75d2cf588c354a7e57726bb1e33f5 Mon Sep 17 00:00:00 2001 From: Firas Sammoura Date: Mon, 17 Nov 2025 17:28:02 +0000 Subject: [PATCH] tests: riscv: Remove local z_riscv_pmp_read_config() prototype in PMP test The function prototype for `z_riscv_pmp_read_config()` was previously declared in `tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c`. This local declaration is no longer necessary as the prototype is now defined within the centralized PMP header, `include/arch/riscv/pmp.h`, which is already included via `kernel_internal.h`. The prototype is guarded by the `CONFIG_ZTEST` Kconfig option. Signed-off-by: Firas Sammoura --- tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c b/tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c index c36d07c5216c5..0d401f43ac425 100644 --- a/tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c +++ b/tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c @@ -7,8 +7,6 @@ #include #include -void z_riscv_pmp_read_config(unsigned long *pmp_cfg, size_t pmp_cfg_size); - /* Checks if the Machine Privilege Register Virtualization (MPRV) bit in mstatus is 1 (enabled). */ static bool riscv_mprv_is_enabled(void) {