Commit 63829521 authored by Breno Leitao's avatar Breno Leitao Committed by Will Deacon
Browse files

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: default avatarBreno Leitao <leitao@debian.org>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250707-arm64_vmap-v1-2-8de98ca0f91c@debian.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ef6861b8
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -215,11 +215,6 @@ static int __init arm64_efi_rt_init(void)
	if (!efi_enabled(EFI_RUNTIME_SERVICES))
		return 0;

	if (!IS_ENABLED(CONFIG_VMAP_STACK)) {
		clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);
		return -ENOMEM;
	}

	p = arch_alloc_vmap_stack(THREAD_SIZE, NUMA_NO_NODE);
	if (!p) {
		pr_warn("Failed to allocate EFI runtime stack\n");