diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2016-04-25 16:06:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-28 05:33:56 -0400 |
commit | c3c1c47f15b37a8492e630d1e9ab8ad576ee10e5 (patch) | |
tree | b23263b7660990c1488d972480a12c8b01cb375e | |
parent | 789957ef72f976cb325e9057225fc4e9c4513060 (diff) |
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>
-rw-r--r-- | arch/x86/platform/efi/efi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index dde46cd78b8f..f93545e7dc54 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
@@ -54,8 +54,6 @@ | |||
54 | #include <asm/rtc.h> | 54 | #include <asm/rtc.h> |
55 | #include <asm/uv/uv.h> | 55 | #include <asm/uv/uv.h> |
56 | 56 | ||
57 | #define EFI_DEBUG | ||
58 | |||
59 | static struct efi efi_phys __initdata; | 57 | static struct efi efi_phys __initdata; |
60 | static efi_system_table_t efi_systab __initdata; | 58 | static efi_system_table_t efi_systab __initdata; |
61 | 59 | ||
@@ -222,7 +220,6 @@ int __init efi_memblock_x86_reserve_range(void) | |||
222 | 220 | ||
223 | void __init efi_print_memmap(void) | 221 | void __init efi_print_memmap(void) |
224 | { | 222 | { |
225 | #ifdef EFI_DEBUG | ||
226 | efi_memory_desc_t *md; | 223 | efi_memory_desc_t *md; |
227 | int i = 0; | 224 | int i = 0; |
228 | 225 | ||
@@ -235,7 +232,6 @@ void __init efi_print_memmap(void) | |||
235 | md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1, | 232 | md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1, |
236 | (md->num_pages >> (20 - EFI_PAGE_SHIFT))); | 233 | (md->num_pages >> (20 - EFI_PAGE_SHIFT))); |
237 | } | 234 | } |
238 | #endif /* EFI_DEBUG */ | ||
239 | } | 235 | } |
240 | 236 | ||
241 | void __init efi_unmap_memmap(void) | 237 | void __init efi_unmap_memmap(void) |