X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fi386%2Fkernel%2Fefi.c;h=f732f427b418a02672409e8168f7701f032873bc;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=8c3623b85b08551c982b2d062aa9f233a0646df3;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c index 8c3623b85..f732f427b 100644 --- a/arch/i386/kernel/efi.c +++ b/arch/i386/kernel/efi.c @@ -46,8 +46,8 @@ extern efi_status_t asmlinkage efi_call_phys(void *, ...); struct efi efi; EXPORT_SYMBOL(efi); -struct efi efi_phys __initdata; -struct efi_memory_map memmap __initdata; +static struct efi efi_phys; +struct efi_memory_map memmap; /* * We require an early boot_ioremap mapping mechanism initially @@ -151,7 +151,7 @@ phys_efi_set_virtual_address_map(unsigned long memory_map_size, return status; } -efi_status_t +static efi_status_t phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) { efi_status_t status; @@ -240,7 +240,8 @@ void __init efi_map_memmap(void) printk(KERN_ERR PFX "Could not remap the EFI memmap!\n"); } -void __init print_efi_memmap(void) +#if EFI_DEBUG +static void __init print_efi_memmap(void) { efi_memory_desc_t *md; int i; @@ -254,6 +255,7 @@ void __init print_efi_memmap(void) (md->num_pages >> (20 - EFI_PAGE_SHIFT))); } } +#endif /* EFI_DEBUG */ /* * Walks the EFI memory map and calls CALLBACK once for each EFI