Skip to content

Commit 6382952

Browse files
leitaowilldeacon
authored andcommitted
arm64: efi: Remove CONFIG_VMAP_STACK check
Remove the CONFIG_VMAP_STACK check in arm64_efi_rt_init() since VMAP_STACK is now always enabled on arm64. The arch_alloc_vmap_stack() call will fail to build if VMAP_STACK is not set, providing sufficient protection without the explicit runtime check. Signed-off-by: Breno Leitao <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent ef6861b commit 6382952

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/arm64/kernel/efi.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ static int __init arm64_efi_rt_init(void)
215215
if (!efi_enabled(EFI_RUNTIME_SERVICES))
216216
return 0;
217217

218-
if (!IS_ENABLED(CONFIG_VMAP_STACK)) {
219-
clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);
220-
return -ENOMEM;
221-
}
222-
223218
p = arch_alloc_vmap_stack(THREAD_SIZE, NUMA_NO_NODE);
224219
if (!p) {
225220
pr_warn("Failed to allocate EFI runtime stack\n");

0 commit comments

Comments
 (0)