Skip to content

Commit b433573

Browse files
fsammoura1980nashif
authored andcommitted
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 <[email protected]>
1 parent 87997af commit b433573

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)