]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4216a8a9dbe871d0174bd0093d823a86b1bfa33c
treed89197f1f047606254ec29cb061ee975798b546f
parent9b4840b873b6daae5e3879c6836c1658016e7039
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