From: Christopher James Halse Rogers Date: Mon, 27 Jun 2022 00:45:12 +0000 (+1000) Subject: stacktrace: Export stack_trace_save_tsk X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d672f40941a549f72aa5500f9d32b26b3f6ab34;p=linux.git stacktrace: Export stack_trace_save_tsk The bcachefs module wants it, and there doesn't seem to be any reason it shouldn't be exported like the other functions. Signed-off-by: Christopher James Halse Rogers Signed-off-by: Kent Overstreet --- diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c index 9ed5ce9894155..4f65824879ab6 100644 --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -151,6 +151,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store, put_task_stack(tsk); return c.len; } +EXPORT_SYMBOL_GPL(stack_trace_save_tsk); /** * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array @@ -301,6 +302,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task, save_stack_trace_tsk(task, &trace); return trace.nr_entries; } +EXPORT_SYMBOL_GPL(stack_trace_save_tsk); /** * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array