mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
fiq_debugger: arm: Fix compile error on !THREAD_INFO
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: Id65e44276f7ee0ab0473274a2b739e0a6b453373
This commit is contained in:
@@ -238,12 +238,16 @@ void fiq_debugger_dump_stacktrace(struct fiq_debugger_output *output,
|
||||
const struct pt_regs *regs, unsigned int depth, void *ssp)
|
||||
{
|
||||
struct frame_tail *tail;
|
||||
#ifdef THREAD_INFO
|
||||
struct thread_info *real_thread_info = THREAD_INFO(ssp);
|
||||
#endif
|
||||
struct stacktrace_state sts;
|
||||
|
||||
sts.depth = depth;
|
||||
sts.output = output;
|
||||
#ifdef THREAD_INFO
|
||||
*current_thread_info() = *real_thread_info;
|
||||
#endif
|
||||
|
||||
if (!current)
|
||||
output->printf(output, "current NULL\n");
|
||||
|
||||
Reference in New Issue
Block a user