Skip to content

Commit c8e25a2

Browse files
committed
tests: riscv Remove redundant z_riscv_pmp_read_config declaration
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 conditionally defined within the centralized PMP header, `include/arch/riscv/pmp.h`, guarded by the `CONFIG_ZTEST` Kconfig option: Signed-off-by: Firas Sammoura <[email protected]>
1 parent 6c83b9b commit c8e25a2

File tree

1 file changed

+0
-2
lines changed
  • tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src

1 file changed

+0
-2
lines changed

tests/arch/riscv/pmp/clear-pmp-unlocked-entries/src/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#include <zephyr/tc_util.h>
88
#include <zephyr/ztest.h>
99

10-
void z_riscv_pmp_read_config(unsigned long *pmp_cfg, size_t pmp_cfg_size);
11-
1210
/* Checks if the Machine Privilege Register Virtualization (MPRV) bit in mstatus is 1 (enabled). */
1311
static bool riscv_mprv_is_enabled(void)
1412
{

0 commit comments

Comments
 (0)