From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756846AbbCDNch (ORCPT ); Wed, 4 Mar 2015 08:32:37 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36320 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751326AbbCDNcf (ORCPT ); Wed, 4 Mar 2015 08:32:35 -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 01/16] arch: x86: boot: Make function static and add function prototype Date: Wed, 4 Mar 2015 19:02:03 +0530 Message-Id: <40cee6529458e725e48fddac329d9a9da0de67c3.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 compressed/eboot.c defines an internal function setup_graphics(struct boot_params *boot_params). No other file refers to this function with the same parameters so make this function static. This eliminates the following warning: arch/x86/boot/compressed/eboot.c:1004:6: warning: no previous prototype for ‘setup_graphics’ [-Wmissing-prototypes] Also make_boot_params is declared only in this file and is used in some assembly. So add a prototype for this function. This eliminates the following warning: arch/x86/boot/compressed/eboot.c:1042:21: warning: no previous prototype for ‘make_boot_params’ [-Wmissing-prototypes] Signed-off-by: Darshana Padmadas --- arch/x86/boot/compressed/eboot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index 92b9a5f..cb4ebab 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -1001,7 +1001,7 @@ free_handle: return status; } -void setup_graphics(struct boot_params *boot_params) +static void setup_graphics(struct boot_params *boot_params) { efi_guid_t graphics_proto = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID; struct screen_info *si; @@ -1039,6 +1039,9 @@ void setup_graphics(struct boot_params *boot_params) * The caller is responsible for filling out ->code32_start in the * returned boot_params. */ + +struct boot_params *make_boot_params(struct efi_config *c); + struct boot_params *make_boot_params(struct efi_config *c) { struct boot_params *boot_params; @@ -1378,6 +1381,10 @@ free_mem_map: * On success we return a pointer to a boot_params structure, and NULL * on failure. */ + +struct boot_params *efi_main(struct efi_config *c, + struct boot_params *boot_params); + struct boot_params *efi_main(struct efi_config *c, struct boot_params *boot_params) { -- 1.9.1