Skip to content

Commit

Permalink
arm64: mmu: make split_pud and fixup_executable static
Browse files Browse the repository at this point in the history
split_pud and fixup_executable are only called from within mmu.c, so
they can be declared static.

Signed-off-by: Jisheng Zhang <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
Jisheng Zhang authored and ctmarinas committed Nov 12, 2015
1 parent 29b8302 commit 9a17a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static void alloc_init_pte(pmd_t *pmd, unsigned long addr,
} while (addr != end);
}

void split_pud(pud_t *old_pud, pmd_t *pmd)
static void split_pud(pud_t *old_pud, pmd_t *pmd)
{
unsigned long addr = pud_pfn(*old_pud) << PAGE_SHIFT;
pgprot_t prot = __pgprot(pud_val(*old_pud) ^ addr);
Expand Down Expand Up @@ -447,7 +447,7 @@ static void __init map_mem(void)
memblock_set_current_limit(MEMBLOCK_ALLOC_ANYWHERE);
}

void __init fixup_executable(void)
static void __init fixup_executable(void)
{
#ifdef CONFIG_DEBUG_RODATA
/* now that we are actually fully mapped, make the start/end more fine grained */
Expand Down

0 comments on commit 9a17a21

Please sign in to comment.