aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2015-11-12 07:04:43 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2015-11-12 10:18:14 -0500
commit9a17a213345584fbc692f6b3a715aa451d4c75e9 (patch)
tree071c8fa62ab2b892a3b8117a50a12d83228fb2d6
parent29b8302b1a7baef6b4c71ff368bd14729f26eb0c (diff)
arm64: mmu: make split_pud and fixup_executable static
split_pud and fixup_executable are only called from within mmu.c, so they can be declared static. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/mm/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 5e23de53b747..e3f563c81c48 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -165,7 +165,7 @@ static void alloc_init_pte(pmd_t *pmd, unsigned long addr,
165 } while (addr != end); 165 } while (addr != end);
166} 166}
167 167
168void split_pud(pud_t *old_pud, pmd_t *pmd) 168static void split_pud(pud_t *old_pud, pmd_t *pmd)
169{ 169{
170 unsigned long addr = pud_pfn(*old_pud) << PAGE_SHIFT; 170 unsigned long addr = pud_pfn(*old_pud) << PAGE_SHIFT;
171 pgprot_t prot = __pgprot(pud_val(*old_pud) ^ addr); 171 pgprot_t prot = __pgprot(pud_val(*old_pud) ^ addr);
@@ -447,7 +447,7 @@ static void __init map_mem(void)
447 memblock_set_current_limit(MEMBLOCK_ALLOC_ANYWHERE); 447 memblock_set_current_limit(MEMBLOCK_ALLOC_ANYWHERE);
448} 448}
449 449
450void __init fixup_executable(void) 450static void __init fixup_executable(void)
451{ 451{
452#ifdef CONFIG_DEBUG_RODATA 452#ifdef CONFIG_DEBUG_RODATA
453 /* now that we are actually fully mapped, make the start/end more fine grained */ 453 /* now that we are actually fully mapped, make the start/end more fine grained */