]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
x86/efi: Rename print_efi_memmap() to efi_print_memmap()
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Wed, 30 Sep 2015 10:20:00 +0000 (19:20 +0900)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 12 Oct 2015 13:20:08 +0000 (14:20 +0100)
This patch renames print_efi_memmap() to efi_print_memmap() and
make it global function so that we can invoke it outside of
arch/x86/platform/efi/efi.c

Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi.c

index 155162ea0e00292b619cc2a02ff8b2f31fafd02b..cfee9d4b02af7a69a652bd924b1ff99e60a4f5ec 100644 (file)
@@ -93,6 +93,7 @@ extern void __init efi_set_executable(efi_memory_desc_t *md, bool executable);
 extern int __init efi_memblock_x86_reserve_range(void);
 extern pgd_t * __init efi_call_phys_prolog(void);
 extern void __init efi_call_phys_epilog(pgd_t *save_pgd);
+extern void __init efi_print_memmap(void);
 extern void __init efi_unmap_memmap(void);
 extern void __init efi_memory_uc(u64 addr, unsigned long size);
 extern void __init efi_map_region(efi_memory_desc_t *md);
index 4d0ff0f27a99f95714a3d4bb3918120d113df82b..c69e58fb7f199f52529b4a667ea621210ba40d78 100644 (file)
@@ -222,7 +222,7 @@ int __init efi_memblock_x86_reserve_range(void)
        return 0;
 }
 
-static void __init print_efi_memmap(void)
+void __init efi_print_memmap(void)
 {
 #ifdef EFI_DEBUG
        efi_memory_desc_t *md;
@@ -524,7 +524,7 @@ void __init efi_init(void)
                return;
 
        if (efi_enabled(EFI_DBG))
-               print_efi_memmap();
+               efi_print_memmap();
 
        efi_esrt_init();
 }