[RFC PATCH 4/9] stacktrace: export-GPL stack_trace_save_user

From: Mathieu Desnoyers
Date: Thu Apr 09 2020 - 15:36:08 EST


The stack_trace_save symbol is already exported GPL. Add a GPL export
for the stack_trace_save_user symbol as well.

This is useful for tracers implemented as kernel modules.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
kernel/stacktrace.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c
index 2af66e449aa6..c8c48444bd39 100644
--- a/kernel/stacktrace.c
+++ b/kernel/stacktrace.c
@@ -240,6 +240,7 @@ unsigned int stack_trace_save_user(unsigned long *store, unsigned int size)

return c.len;
}
+EXPORT_SYMBOL_GPL(stack_trace_save_user);
#endif

#else /* CONFIG_ARCH_STACKWALK */
--
2.17.1