]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Drop const annotation for sp
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 17 Mar 2021 15:08:38 +0000 (23:08 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 2 Apr 2021 04:37:03 +0000 (21:37 -0700)
commita7566857bfc33f9d905581225ed70c28c2d03845
tree9205e422692ca9b03ddf72092fd030063e30baf9
parent5769e41d28283e528d581f536f314c549bc3ab6d
riscv: Drop const annotation for sp

The const annotation should not be used for 'sp', or it will
become read only and lead to bad stack output.

Fixes: 433ccb052bbe ("riscv: stacktrace: Move register keyword to beginning of declaration")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/stacktrace.c