Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/efi: Rename print_efi_memmap() to efi_print_memmap()

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>

authored by

Taku Izumi and committed by
Matt Fleming
0bbea1ce 9ac4d5ab

+3 -2
+1
arch/x86/include/asm/efi.h
··· 93 93 extern int __init efi_memblock_x86_reserve_range(void); 94 94 extern pgd_t * __init efi_call_phys_prolog(void); 95 95 extern void __init efi_call_phys_epilog(pgd_t *save_pgd); 96 + extern void __init efi_print_memmap(void); 96 97 extern void __init efi_unmap_memmap(void); 97 98 extern void __init efi_memory_uc(u64 addr, unsigned long size); 98 99 extern void __init efi_map_region(efi_memory_desc_t *md);
+2 -2
arch/x86/platform/efi/efi.c
··· 222 222 return 0; 223 223 } 224 224 225 - static void __init print_efi_memmap(void) 225 + void __init efi_print_memmap(void) 226 226 { 227 227 #ifdef EFI_DEBUG 228 228 efi_memory_desc_t *md; ··· 524 524 return; 525 525 526 526 if (efi_enabled(EFI_DBG)) 527 - print_efi_memmap(); 527 + efi_print_memmap(); 528 528 529 529 efi_esrt_init(); 530 530 }