[PATCH] efi: Fix compiler error introduced by moving of the codedecleration.

From: Konrad Rzeszutek Wilk
Date: Thu Feb 09 2012 - 10:59:17 EST


The compiler error is :

arch/x86/platform/efi/efi.c:62: error: âefi_reserve_boot_services_genericâ undeclared here (not in a function

And declearing it before the use fixes the issue.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
arch/x86/platform/efi/efi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index d7b19ee..c21b325 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -56,6 +56,7 @@ static void efi_init_generic(void);
static void efi_enter_virtual_mode_generic(void);
static u32 efi_mem_type_generic(unsigned long phys_addr);
static u64 efi_mem_attributes_generic(unsigned long phys_addr);
+static void efi_reserve_boot_services_generic(void);

struct efi_init_funcs efi_generic_funcs = {
.__efi_init = efi_init_generic,
--
1.7.7.5

--
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/