[PATCH 15/16] arch: x86: xen: Add prototypes for functions defined in mmu.c
From: Darshana Padmadas
Date: Wed Mar 04 2015 - 08:35:51 EST
mmu.c defines the following functions:
__visible pteval_t xen_pte_val(pte_t pte)
__visible pgdval_t xen_pgd_val(pgd_t pgd)
__visible pte_t xen_make_pte(pteval_t pte)
__visible pgd_t xen_make_pgd(pgdval_t pgd)
__visible pmdval_t xen_pmd_val(pmd_t pmd)
__visible pmd_t xen_make_pmd(pmdval_t pmd)
__visible pudval_t xen_pud_val(pud_t pud)
__visible pud_t xen_make_pud(pudval_t pud)
Include prototypes for these files in mmu.h since no
header file declares them.
This eliminates the following warnings:
arch/x86/xen/mmu.c:410:20: warning: no previous prototype for âxen_pte_valâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:418:20: warning: no previous prototype for âxen_pgd_valâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:424:17: warning: no previous prototype for âxen_make_pteâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:432:17: warning: no previous prototype for âxen_make_pgdâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:439:20: warning: no previous prototype for âxen_pmd_valâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:498:17: warning: no previous prototype for âxen_make_pmdâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:506:20: warning: no previous prototype for âxen_pud_valâ [-Wmissing-prototypes]
arch/x86/xen/mmu.c:512:17: warning: no previous prototype for âxen_make_pudâ [-Wmissing-prototypes]
Signed-off-by: Darshana Padmadas <darshanapadmadas@xxxxxxxxx>
---
arch/x86/xen/mmu.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/x86/xen/mmu.h b/arch/x86/xen/mmu.h
index 73809bb..d38126d 100644
--- a/arch/x86/xen/mmu.h
+++ b/arch/x86/xen/mmu.h
@@ -20,6 +20,14 @@ void xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
pte_t *ptep, pte_t pte);
unsigned long xen_read_cr2_direct(void);
+pteval_t xen_pte_val(pte_t pte);
+pgdval_t xen_pgd_val(pgd_t pgd);
+pte_t xen_make_pte(pteval_t pte);
+pgd_t xen_make_pgd(pgdval_t pgd);
+pmdval_t xen_pmd_val(pmd_t pmd);
+pmd_t xen_make_pmd(pmdval_t pmd);
+pudval_t xen_pud_val(pud_t pud);
+pud_t xen_make_pud(pudval_t pud);
extern void xen_init_mmu_ops(void);
extern void xen_hvm_init_mmu_ops(void);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/