aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/task_work.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/task_work.h')
-rw-r--r--include/linux/task_work.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/task_work.h b/include/linux/task_work.h
index 294d5d5e90b1..627421c0e108 100644
--- a/include/linux/task_work.h
+++ b/include/linux/task_work.h
@@ -10,14 +10,12 @@ typedef void (*task_work_func_t)(struct task_work *);
10struct task_work { 10struct task_work {
11 struct hlist_node hlist; 11 struct hlist_node hlist;
12 task_work_func_t func; 12 task_work_func_t func;
13 void *data;
14}; 13};
15 14
16static inline void 15static inline void
17init_task_work(struct task_work *twork, task_work_func_t func, void *data) 16init_task_work(struct task_work *twork, task_work_func_t func)
18{ 17{
19 twork->func = func; 18 twork->func = func;
20 twork->data = data;
21} 19}
22 20
23int task_work_add(struct task_struct *task, struct task_work *twork, bool); 21int task_work_add(struct task_struct *task, struct task_work *twork, bool);