make arch/i386/kernel/vmi.c:vmi_pmd_clear() static
PATCH 1/1 make arch/i386/kernel/vmi.c:vmi_pmd_clear() static
This patch makes the needlessly global vmi_pmd_clear() static.
Signed-off-by Adrian Bunk <[email protected]>
---
arch/i386/kernel/vmi.c renamed from arch/i386/kernel/vmi.c.old +1 -1
@@ -517,7 +517,7 @@ vmi_ops.set_pte (pte, ptep,vmi_flags_addr (mm, addr,VMI_PAGE_PT ,0 )); } -void vmi_pmd_clear (pmd_t *pmd) +static void vmi_pmd_clear (pmd_t *pmd) {const pte_t pte = {0 };vmi_check_page_type (__pa (pmd) >>PAGE_SHIFT ,VMI_PAGE_PMD );
Quoted 11 lines · Adrian Bunk
This patch makes the needlessly global
vmi_pmd_clear()static.Signed-off-by Adrian Bunk <[email protected]>---
arch/i386/kernel/vmi.c line 523
Quoted 8 lines
arch/i386/kernel/vmi.c renamed from arch/i386/kernel/vmi.c.old +1
-1@@ -517,7 +517,7 @@ vmi_ops.set_pte (pte, ptep,vmi_flags_addr (mm, addr,VMI_PAGE_PT ,0 )); } -void vmi_pmd_clear (pmd_t *pmd) +static void vmi_pmd_clear (pmd_t *pmd) {const pte_t pte = {0 };vmi_check_page_type (__pa (pmd) >>PAGE_SHIFT ,VMI_PAGE_PMD );
Acked-by Zachary Amsden <[email protected]>