Skip to contentSkip to conversation

arc: kernel: export symbol for save_stack_trace() in stacktrace.c

PATCH In review Chen Gang 2 participants 3 messages Oct 28, 2013 – Oct 29, 2013 Synopsys ARC architecture

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arc: kernel: export symbol for save_stack_trace() in stacktrace.c

Need export its symbol just like other architectures done, or can not pass compiling with allmodconfig, the related error:

MODPOST 2994 modules
ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined!
ERROR: "save_stack_trace" [drivers/md/persistent-data/dm-persistent-data.ko] undefined!

---
 arch/arc/kernel/stacktrace.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arc/kernel/stacktrace.c +1 -0
index f8b7d88..607c6e4 100644
@@ -244,4 +244,5 @@ void save_stack_trace(struct stack_trace *trace)
 {
 	arc_unwind_core(current, NULL, __collect_all, trace);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace);
 #endif
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 9 lines · Chen Gang

Need export its symbol just like other architectures done, or can not pass compiling with allmodconfig, the related error:

MODPOST 2994 modules
ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined!
ERROR: "save_stack_trace" [drivers/md/persistent-data/dm-persistent-data.ko] undefined!

Applied for 3.13

Thx,
-Vineet

author
#2 lore raw
Quoted 4 lines · Vineet Gupta
Quoted 3 lines · Chen Gang

Need export its symbol just like other architectures done, or can not pass compiling with allmodconfig, the related error:

Quoted 9 lines
Quoted 6 lines

MODPOST 2994 modules
ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined!
ERROR: "save_stack_trace" [drivers/md/persistent-data/dm-persistent-data.ko] undefined!

Applied for 3.13

Thanks.

Signature · 1 line
Chen Gang