Skip to content

Commit 3f3ee43

Browse files
committed
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Ingo Molnar: "A build fix with certain Kconfig combinations" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/ioremap: Fix CONFIG_EFI=n build
2 parents c6ac718 + 870b433 commit 3f3ee43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/mm/ioremap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, struct ioremap_desc *des
115115
if (!sev_active())
116116
return;
117117

118+
if (!IS_ENABLED(CONFIG_EFI))
119+
return;
120+
118121
if (efi_mem_type(addr) == EFI_RUNTIME_SERVICES_DATA)
119122
desc->flags |= IORES_MAP_ENCRYPTED;
120123
}

0 commit comments

Comments
 (0)