Skip to content

Conversation

@fsammoura1980
Copy link
Contributor

@fsammoura1980 fsammoura1980 commented Nov 17, 2025

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.

@zephyrbot zephyrbot added area: RISCV RISCV Architecture (32-bit & 64-bit) area: Tests Issues related to a particular existing or missing test labels Nov 17, 2025
@fsammoura1980 fsammoura1980 force-pushed the remove_redundant_header branch from c8e25a2 to 25b5954 Compare November 20, 2025 03:24
… 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]>
@fsammoura1980 fsammoura1980 force-pushed the remove_redundant_header branch from 25b5954 to 1bab0fb Compare November 20, 2025 03:31
@sonarqubecloud
Copy link

@nashif nashif merged commit b433573 into zephyrproject-rtos:main Nov 21, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: RISCV RISCV Architecture (32-bit & 64-bit) area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants