Skip to content

Commit

Permalink
x86/efi: Remove the always true EFI_DEBUG symbol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Fleming authored and Ingo Molnar committed Apr 28, 2016
1 parent 789957e commit c3c1c47
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/platform/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit c3c1c47

Please sign in to comment.