Skip to content

Commit c3c1c47

Browse files
mflemingIngo Molnar
authored andcommitted
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. Reported-by: Robert Elliott <elliott@hpe.com> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Acked-by: Borislav Petkov <bp@suse.de> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1461614832-17633-16-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 789957e commit c3c1c47

File tree

1 file changed

+0
-4
lines changed
  • arch/x86/platform/efi

1 file changed

+0
-4
lines changed

arch/x86/platform/efi/efi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
#include <asm/rtc.h>
5555
#include <asm/uv/uv.h>
5656

57-
#define EFI_DEBUG
58-
5957
static struct efi efi_phys __initdata;
6058
static efi_system_table_t efi_systab __initdata;
6159

@@ -222,7 +220,6 @@ int __init efi_memblock_x86_reserve_range(void)
222220

223221
void __init efi_print_memmap(void)
224222
{
225-
#ifdef EFI_DEBUG
226223
efi_memory_desc_t *md;
227224
int i = 0;
228225

@@ -235,7 +232,6 @@ void __init efi_print_memmap(void)
235232
md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1,
236233
(md->num_pages >> (20 - EFI_PAGE_SHIFT)));
237234
}
238-
#endif /* EFI_DEBUG */
239235
}
240236

241237
void __init efi_unmap_memmap(void)

0 commit comments

Comments
 (0)