arm64: sdei: Push IS_ENABLED() checks down to callee functions
authorWill Deacon <will@kernel.org>
Tue, 1 Dec 2020 11:24:16 +0000 (11:24 +0000)
committerWill Deacon <will@kernel.org>
Tue, 1 Dec 2020 11:24:16 +0000 (11:24 +0000)
commiteec3bf6861a8703ab63992578b1776353c5ac2a1
treed89197f1f047606254ec29cb061ee975798b546f
parentac20ffbb0279aae7be48567fb734eae7d050769e
arm64: sdei: Push IS_ENABLED() checks down to callee functions

Handling all combinations of the VMAP_STACK and SHADOW_CALL_STACK options
in sdei_arch_get_entry_point() makes the code difficult to read,
particularly when considering the error and cleanup paths.

Move the checking of these options into the callee functions, so that
they return early if the relevant option is not enabled.

Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/sdei.c