]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: stacktrace: Declare sp_in_global outside ifdef
authorGuenter Roeck <linux@roeck-us.net>
Mon, 13 Apr 2020 16:12:34 +0000 (09:12 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 21 Apr 2020 17:50:45 +0000 (10:50 -0700)
commit316d660a0b08c054e0fac84ca5583f80a1e96611
tree6507519376eb18f6ad1c3a641cfbaf67df241da8
parente4e79bc94ba2381f2a677c8e345f3bbe0674f2c2
RISC-V: stacktrace: Declare sp_in_global outside ifdef

riscv:allnoconfig and riscv:tinyconfig fail to compile.

arch/riscv/kernel/stacktrace.c: In function 'walk_stackframe':
arch/riscv/kernel/stacktrace.c:78:8: error: 'sp_in_global' undeclared

sp_in_global is declared inside CONFIG_FRAME_POINTER but used outside
of it.

Fixes: 9b96ed52f511 ("RISC-V: Stop relying on GCC's register allocator's hueristics")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/stacktrace.c