soc: riscv: andes_v5: fix PMA compilation warnings

These static functions in the `pma.c` are used only when
`CONFIG_NOCACHE_MEMORY` is enabled, so guard them accordingly.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-09-16 13:45:24 +08:00 committed by Fabio Baltieri
commit 022041edba

View file

@ -70,6 +70,7 @@ struct pma_region {
struct pma_region_attr attr;
};
#ifdef CONFIG_NOCACHE_MEMORY
/*
* Write value to CSRs pmaaddr{i}
*/
@ -165,7 +166,6 @@ static int pma_region_is_valid(const struct pma_region *region)
return 0;
}
#ifdef CONFIG_NOCACHE_MEMORY
static void configure_nocache_region(void)
{
const struct pma_region nocache_region = {