]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arm64: mmu: make split_pud and fixup_executable static
authorJisheng Zhang <jszhang@marvell.com>
Thu, 12 Nov 2015 12:04:43 +0000 (20:04 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Nov 2015 15:18:14 +0000 (15:18 +0000)
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>
arch/arm64/mm/mmu.c

index 5e23de53b747c107877c1933b85e65afed97babd..e3f563c81c4802c1f9c519fe2bfc7317f8ab5467 100644 (file)
@@ -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);
@@ -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 */