riscv: Cleanup stacktrace
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 13 Nov 2020 06:42:21 +0000 (14:42 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 21 Nov 2020 02:53:31 +0000 (18:53 -0800)
commit99c168fccbfedbc10ce1cb2dcb9eb790c478d833
tree45e9d6509be0dde4bd45785e4f8a47d4583da31e
parent31564b8b6dbaf9035d27131982d3296c10742baa
riscv: Cleanup stacktrace

1. add asm/stacktrace.h for walk_stackframe and struct stackframe
2. remove unnecessary blank lines in stacktrace.c
3. fix warning "no previous prototype for ‘fill_callchain’"

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/stacktrace.h [new file with mode: 0644]
arch/riscv/kernel/perf_callchain.c
arch/riscv/kernel/stacktrace.c