arm64: remove CONFIG_VMAP_STACK checks from SDEI stack handling
authorBreno Leitao <leitao@debian.org>
Mon, 7 Jul 2025 16:01:07 +0000 (09:01 -0700)
committerWill Deacon <will@kernel.org>
Tue, 8 Jul 2025 12:41:09 +0000 (13:41 +0100)
commit3e72b9e9f01a4851640a095de688a031d9259f5d
treed51d94bdff80013a0947ce2a7714826cbaf14226
parent907cb5cd8efdae8672b7fd45047d130a430179f6
arm64: remove CONFIG_VMAP_STACK checks from SDEI stack handling

With VMAP_STACK now always enabled on arm64, remove all
CONFIG_VMAP_STACK conditionals from SDEI stack allocation and
initialization in arch/arm64/kernel/sdei.c.

This change unconditionally defines the SDEI stack pointers and replaces
runtime checks with BUILD_BUG_ON() assertions, ensuring that the code is
only built when VMAP_STACK is enabled. This simplifies the logic and
reflects the mandatory use of VMAP_STACK for all arm64 kernel builds.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250707-arm64_vmap-v1-7-8de98ca0f91c@debian.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/sdei.c