riscv: stacktrace: Fix undefined reference to `walk_stackframe'
commit8b14d3efedb20c12e0fe9e3c43bb06f95e173c1e
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 11 May 2020 02:19:53 +0000 (11 10:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:19:30 +0000 (3 08:19 +0200)
tree89a3282b41a15ccccae8539dc1c71714aa4e1c32
parent7a855b4d7a3113c6c9be3c1ec7a7534e157b19ae
riscv: stacktrace: Fix undefined reference to `walk_stackframe'

[ Upstream commit 0502bee37cdef755d63eee60236562e5605e2480 ]

Drop static declaration to fix following build error if FRAME_POINTER disabled,
  riscv64-linux-ld: arch/riscv/kernel/perf_callchain.o: in function `.L0':
  perf_callchain.c:(.text+0x2b8): undefined reference to `walk_stackframe'

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/kernel/stacktrace.c