[RFC PATCH 2/4] kernel: export task_work_add

From: Kanchan Joshi
Date: Wed Jan 27 2021 - 10:59:46 EST


Task-work infra is required to introduce async-ioctl in nvme driver.
Without this being exported, NVMe needs to be built statically.

Signed-off-by: Kanchan Joshi <joshi.k@xxxxxxxxxxx>
---
kernel/task_work.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/task_work.c b/kernel/task_work.c
index 9cde961875c0..3cf413c89639 100644
--- a/kernel/task_work.c
+++ b/kernel/task_work.c
@@ -57,7 +57,7 @@ int task_work_add(struct task_struct *task, struct callback_head *work,

return 0;
}
-
+EXPORT_SYMBOL(task_work_add);
/**
* task_work_cancel - cancel a pending work added by task_work_add()
* @task: the task which should execute the work
--
2.25.1