Skip to content

Commit 6417250

Browse files
shemmingerhtejun
authored andcommitted
workqueue: remove unused cancel_work()
Found this by accident. There are no usages of bare cancel_work() in current kernel source. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 537f414 commit 6417250

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/linux/workqueue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ extern int schedule_on_each_cpu(work_func_t func);
456456
int execute_in_process_context(work_func_t fn, struct execute_work *);
457457

458458
extern bool flush_work(struct work_struct *work);
459-
extern bool cancel_work(struct work_struct *work);
460459
extern bool cancel_work_sync(struct work_struct *work);
461460

462461
extern bool flush_delayed_work(struct delayed_work *dwork);

kernel/workqueue.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,14 +3018,6 @@ static bool __cancel_work(struct work_struct *work, bool is_dwork)
30183018
return ret;
30193019
}
30203020

3021-
/*
3022-
* See cancel_delayed_work()
3023-
*/
3024-
bool cancel_work(struct work_struct *work)
3025-
{
3026-
return __cancel_work(work, false);
3027-
}
3028-
30293021
/**
30303022
* cancel_delayed_work - cancel a delayed work
30313023
* @dwork: delayed_work to cancel

0 commit comments

Comments
 (0)