From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758299AbbCDNfD (ORCPT ); Wed, 4 Mar 2015 08:35:03 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:39948 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755904AbbCDNe7 (ORCPT ); Wed, 4 Mar 2015 08:34:59 -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 13/16] arch: x86: xen: Add prototype for xen_start_kernel in enlighten.c Date: Wed, 4 Mar 2015 19:02:15 +0530 Message-Id: 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 enlighten.c defines xen_start_kernel which is used only in this file and is not defined in any header file. So add a proto- type for the same above the function definition. This satisfies the -Wmissing-prototypes gcc warning: arch/x86/xen/enlighten.c:1534:34: warning: no previous prototype for ‘xen_start_kernel’ [-Wmissing-prototypes] Signed-off-by: Darshana Padmadas --- arch/x86/xen/enlighten.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 78a881b..4061672 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1531,6 +1531,8 @@ static void __init xen_pvh_early_guest_init(void) #endif /* CONFIG_XEN_PVH */ /* First C function to be called on Xen boot */ +asmlinkage __visible void __init xen_start_kernel(void); + asmlinkage __visible void __init xen_start_kernel(void) { struct physdev_set_iopl set_iopl; -- 1.9.1