Skip to content

Commit 0502bee

Browse files
Kefeng Wangpalmer-dabbelt
authored andcommitted
riscv: stacktrace: Fix undefined reference to `walk_stackframe'
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 <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent ab7fbad commit 0502bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/stacktrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
6565

6666
#else /* !CONFIG_FRAME_POINTER */
6767

68-
static void notrace walk_stackframe(struct task_struct *task,
68+
void notrace walk_stackframe(struct task_struct *task,
6969
struct pt_regs *regs, bool (*fn)(unsigned long, void *), void *arg)
7070
{
7171
unsigned long sp, pc;

0 commit comments

Comments
 (0)