diff options
author | Will Deacon <will.deacon@arm.com> | 2018-07-31 14:02:18 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-31 14:08:22 +0300 |
commit | eab1cecc1223378fee700ab6acebf0f39fa6da81 (patch) | |
tree | 0bb9895b26b2429db45b7fc6b0f647c926f20416 /arch/arm64 | |
parent | e401b7c2c69008ad2fcdc154f7c5421281c90042 (diff) | |
download | linux-eab1cecc1223378fee700ab6acebf0f39fa6da81.tar.xz |
arm64: sdei: Mark sdei stack helper functions as static
The SDEI stack helper functions are only used by _on_sdei_stack() and
refer to symbols (e.g. sdei_stack_normal_ptr) that are only defined if
CONFIG_VMAP_STACK=y.
Mark these functions as static, so we don't run into errors at link-time
due to references to undefined symbols. Stick all the parameters onto
the same line whilst we're passing through.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/sdei.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm64/kernel/sdei.c b/arch/arm64/kernel/sdei.c index a94a868f0532..5ba4465e44f0 100644 --- a/arch/arm64/kernel/sdei.c +++ b/arch/arm64/kernel/sdei.c @@ -89,8 +89,7 @@ static int init_sdei_stacks(void) return err; } -bool on_sdei_normal_stack(unsigned long sp, - struct stack_info *info) +static bool on_sdei_normal_stack(unsigned long sp, struct stack_info *info) { unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_normal_ptr); unsigned long high = low + SDEI_STACK_SIZE; @@ -107,8 +106,7 @@ bool on_sdei_normal_stack(unsigned long sp, return true; } -bool on_sdei_critical_stack(unsigned long sp, - struct stack_info *info) +static bool on_sdei_critical_stack(unsigned long sp, struct stack_info *info) { unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_critical_ptr); unsigned long high = low + SDEI_STACK_SIZE; @@ -125,8 +123,7 @@ bool on_sdei_critical_stack(unsigned long sp, return true; } -bool _on_sdei_stack(unsigned long sp, - struct stack_info *info) +bool _on_sdei_stack(unsigned long sp, struct stack_info *info) { if (!IS_ENABLED(CONFIG_VMAP_STACK)) return false; |