From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932263AbbCDNfs (ORCPT ); Wed, 4 Mar 2015 08:35:48 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:44607 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758304AbbCDNfP (ORCPT ); Wed, 4 Mar 2015 08:35:15 -0500 From: Darshana Padmadas To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, josh@joshtriplett.org, Darshana Padmadas Subject: [PATCH 15/16] arch: x86: xen: Add prototypes for functions defined in mmu.c Date: Wed, 4 Mar 2015 19:02:17 +0530 Message-Id: <4fddc0e9d987f3b8e5b00b87f27ad524424ed4df.1425473428.git.darshanapadmadas@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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