Skip to contentSkip to conversation

make arch/i386/kernel/vmi.c:vmi_pmd_clear() static

PATCH In review Adrian Bunk 2 participants 2 messages Mar 5, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make arch/i386/kernel/vmi.c:vmi_pmd_clear() static

This patch makes the needlessly global vmi_pmd_clear() static.

---

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 on v1 1/1
#1 lore raw
Quoted 11 lines · Adrian Bunk

This patch makes the needlessly global vmi_pmd_clear() static.

---

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);