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:
parent
7e2337a1b7
commit
022041edba
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue