[GIT pull] x86/urgent for v5.6
From: Thomas Gleixner
Date: Sun Mar 29 2020 - 12:03:59 EST
Linus,
please pull the latest x86/urgent branch from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2020-03-29
up to: 870b4333a62e: x86/ioremap: Fix CONFIG_EFI=n build
A single fix to unbreak the build for CONFIG_EFI=n by adding a missing
IS_ENABLED() check.
Thanks,
tglx
------------------>
Borislav Petkov (1):
x86/ioremap: Fix CONFIG_EFI=n build
arch/x86/mm/ioremap.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
index 935a91e1fd77..18c637c0dc6f 100644
--- a/arch/x86/mm/ioremap.c
+++ b/arch/x86/mm/ioremap.c
@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, struct ioremap_desc *des
if (!sev_active())
return;
+ if (!IS_ENABLED(CONFIG_EFI))
+ return;
+
if (efi_mem_type(addr) == EFI_RUNTIME_SERVICES_DATA)
desc->flags |= IORES_MAP_ENCRYPTED;
}