Skip to contentSkip to conversation

x86/efi: Remove the always true EFI_DEBUG symbol

PATCH In review Matt Fleming 2 participants 3 messages Apr 21, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/efi: Remove the always true EFI_DEBUG symbol

This symbol is always set which makes it useless. Additionally we have a kernel command-line switch, efi=debug, which actually controls the printing of the memory map.

---
 arch/x86/platform/efi/efi.c | 4 ----
 1 file changed, 4 deletions(-)
arch/x86/platform/efi/efi.c +0 -4
index dde46cd78b8f..f93545e7dc54 100644
@@ -54,8 +54,6 @@
 #include <asm/rtc.h>
 #include <asm/uv/uv.h>
 
-#define EFI_DEBUG
-
 static struct efi efi_phys __initdata;
 static efi_system_table_t efi_systab __initdata;
 
@@ -222,7 +220,6 @@ int __init efi_memblock_x86_reserve_range(void)
 
 void __init efi_print_memmap(void)
 {
-#ifdef EFI_DEBUG
 	efi_memory_desc_t *md;
 	int i = 0;
 
@@ -235,7 +232,6 @@ void __init efi_print_memmap(void)
 			md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1,
 			(md->num_pages >> (20 - EFI_PAGE_SHIFT)));
 	}
-#endif  /*  EFI_DEBUG  */
 }
 
 void __init efi_unmap_memmap(void)
Signature · 1 line
2.7.3
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Matt Fleming

This symbol is always set which makes it useless. Additionally we have a kernel command-line switch, efi=debug, which actually controls the printing of the memory map.

---
 arch/x86/platform/efi/efi.c | 4 ----
 1 file changed, 4 deletions(-)

Btw, there's also

arch/ia64/kernel/efi.c:45:#define EFI_DEBUG 0
arch/ia64/kernel/efi.c:399:#if EFI_DEBUG
arch/ia64/kernel/efi.c:559:#if EFI_DEBUG

I'm assuming you want to put that behind "if (efi_enabled(EFI_DBG))" too...

Signature · 4 lines
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
#2 lore raw
Quoted 14 lines · Borislav Petkov
Quoted 10 lines · Matt Fleming

This symbol is always set which makes it useless. Additionally we have a kernel command-line switch, efi=debug, which actually controls the printing of the memory map.

---
 arch/x86/platform/efi/efi.c | 4 ----
 1 file changed, 4 deletions(-)
Quoted 7 lines

Btw, there's also

arch/ia64/kernel/efi.c:45:#define EFI_DEBUG 0
arch/ia64/kernel/efi.c:399:#if EFI_DEBUG
arch/ia64/kernel/efi.c:559:#if EFI_DEBUG

I'm assuming you want to put that behind "if (efi_enabled(EFI_DBG))" too...

Hmm.. Yes, that'd be a good idea. I am in the process of setting up an Itanium box or two for runtime EFI testing, so I'll make a note of this task.