diff options
| author | Anup Patel <[email protected]> | 2021-04-10 10:08:23 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-04-13 10:56:51 +0530 |
| commit | f41196a9d245f024a87a08e7d159ca6dc0a6c298 (patch) | |
| tree | 0795173cb714bdae285b4363cfa08d8c13de1b85 /lib | |
| parent | e7e4bcd5b95ed9abcac850725edb1955e772ed3d (diff) | |
lib: sbi: Make sbi_domain_memregion_initfw() a local function
The sbi_domain_memregion_initfw() is no longer used outside
sbi_domain.c so let's make it a local function.
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_domain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index c95c3c3b..69a3795b 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -64,7 +64,7 @@ ulong sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom, return ret; } -void sbi_domain_memregion_initfw(struct sbi_domain_memregion *reg) +static void domain_memregion_initfw(struct sbi_domain_memregion *reg) { if (!reg) return; @@ -598,7 +598,7 @@ int sbi_domain_init(struct sbi_scratch *scratch, u32 cold_hartid) /* Root domain firmware memory region */ sbi_domain_memregion_init(scratch->fw_start, scratch->fw_size, 0, &root_fw_region); - sbi_domain_memregion_initfw(&root_memregs[root_memregs_count++]); + domain_memregion_initfw(&root_memregs[root_memregs_count++]); /* Root domain allow everything memory region */ sbi_domain_memregion_init(0, ~0UL, |
