From 9c2958f454f124b8b0016430c8285c794e4db55f Mon Sep 17 00:00:00 2001 From: "chunhui.li" Date: Thu, 8 Jul 2021 18:57:06 +0800 Subject: [PATCH] ANDROID: GKI: Export put_task_stack symbol We need dump task->stack in kernel module for debug usage, call try_get_task_stack to lock task->stack, and try_get_task_stack/put_task_stack should call in pairs, but put_task_stack is not exported Bug: 192990535 Change-Id: Ifb2f3d16f93039bffeb3e822bc066e42e2d21d13 Signed-off-by: chunhui.li --- kernel/fork.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/fork.c b/kernel/fork.c index c2657304d67b..8f188222a41b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -443,6 +443,7 @@ void put_task_stack(struct task_struct *tsk) if (refcount_dec_and_test(&tsk->stack_refcount)) release_task_stack(tsk); } +EXPORT_SYMBOL_GPL(put_task_stack); #endif void free_task(struct task_struct *tsk)