mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
stacktrace: fix modular build, export print_stack_trace and save_stack_trace
fix: ERROR: "print_stack_trace" [kernel/backtracetest.ko] undefined! ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined! Signed-off-by: Ingo Molnar <mingo@elte.hu> and fix: Building modules, stage 2. MODPOST 376 modules ERROR: "print_stack_trace" [kernel/backtracetest.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
4e6a0535dd
commit
8594698ebd
2 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
* Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
|
||||
*/
|
||||
#include <linux/sched.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kallsyms.h>
|
||||
#include <linux/stacktrace.h>
|
||||
|
||||
|
@ -21,4 +22,5 @@ void print_stack_trace(struct stack_trace *trace, int spaces)
|
|||
print_ip_sym(trace->entries[i]);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(print_stack_trace);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue