diff options
Diffstat (limited to 'include/linux/task_work.h')
-rw-r--r-- | include/linux/task_work.h | 4 |
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 *); | |||
10 | struct task_work { | 10 | struct 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 | ||
16 | static inline void | 15 | static inline void |
17 | init_task_work(struct task_work *twork, task_work_func_t func, void *data) | 16 | init_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 | ||
23 | int task_work_add(struct task_struct *task, struct task_work *twork, bool); | 21 | int task_work_add(struct task_struct *task, struct task_work *twork, bool); |