]> Git Repo - linux.git/commitdiff
x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI
authorHedi Berriche <[email protected]>
Wed, 13 Feb 2019 19:34:10 +0000 (19:34 +0000)
committerBorislav Petkov <[email protected]>
Fri, 15 Feb 2019 14:05:15 +0000 (15:05 +0100)
CONFIG_EFI is implied by CONFIG_X86_UV and x86/platform/uv/bios_uv.c
requires the latter, get rid of the redundant #ifdef CONFIG_EFI
directives.

Cleanup, no functional changes.

Signed-off-by: Hedi Berriche <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Russ Anderson <[email protected]>
Reviewed-by: Dimitri Sivanich <[email protected]>
Reviewed-by: Mike Travis <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Bhupesh Sharma <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: linux-efi <[email protected]>
Cc: [email protected]
Cc: Steve Wahl <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: x86-ml <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/include/asm/uv/bios.h
arch/x86/platform/uv/bios_uv.c

index e652a7cc61863667fad8ff2baa0a7242485600df..00d862cfbcbe08f9cbb18b90064a4a114899ffa3 100644 (file)
@@ -151,11 +151,7 @@ extern s64 uv_bios_change_memprotect(u64, u64, enum uv_memprotect);
 extern s64 uv_bios_reserved_page_pa(u64, u64 *, u64 *, u64 *);
 extern int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus);
 
-#ifdef CONFIG_EFI
 extern void uv_bios_init(void);
-#else
-void uv_bios_init(void) { }
-#endif
 
 extern unsigned long sn_rtc_cycles_per_second;
 extern int uv_type;
index 4a6a5a26c58295e4245b09be21a658c3ddae86a2..4a61ed2a7bb8f789e02894e69795cce85dce6caa 100644 (file)
@@ -188,7 +188,6 @@ int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus)
 }
 EXPORT_SYMBOL_GPL(uv_bios_set_legacy_vga_target);
 
-#ifdef CONFIG_EFI
 void uv_bios_init(void)
 {
        uv_systab = NULL;
@@ -218,4 +217,3 @@ void uv_bios_init(void)
        }
        pr_info("UV: UVsystab: Revision:%x\n", uv_systab->revision);
 }
-#endif
This page took 0.063318 seconds and 4 git commands to generate.