diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kthread.c | 2 | ||||
-rw-r--r-- | kernel/workqueue.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index 8af313081b0d..cd50e99202b0 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c | |||
@@ -843,7 +843,7 @@ void __kthread_queue_delayed_work(struct kthread_worker *worker, | |||
843 | struct timer_list *timer = &dwork->timer; | 843 | struct timer_list *timer = &dwork->timer; |
844 | struct kthread_work *work = &dwork->work; | 844 | struct kthread_work *work = &dwork->work; |
845 | 845 | ||
846 | WARN_ON_ONCE(timer->function != (TIMER_FUNC_TYPE)kthread_delayed_work_timer_fn); | 846 | WARN_ON_ONCE(timer->function != kthread_delayed_work_timer_fn); |
847 | 847 | ||
848 | /* | 848 | /* |
849 | * If @delay is 0, queue @dwork->work immediately. This is for | 849 | * If @delay is 0, queue @dwork->work immediately. This is for |
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index dde6298f6b22..8fdb710bfdd7 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -1509,7 +1509,7 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, | |||
1509 | struct work_struct *work = &dwork->work; | 1509 | struct work_struct *work = &dwork->work; |
1510 | 1510 | ||
1511 | WARN_ON_ONCE(!wq); | 1511 | WARN_ON_ONCE(!wq); |
1512 | WARN_ON_ONCE(timer->function != (TIMER_FUNC_TYPE)delayed_work_timer_fn); | 1512 | WARN_ON_ONCE(timer->function != delayed_work_timer_fn); |
1513 | WARN_ON_ONCE(timer_pending(timer)); | 1513 | WARN_ON_ONCE(timer_pending(timer)); |
1514 | WARN_ON_ONCE(!list_empty(&work->entry)); | 1514 | WARN_ON_ONCE(!list_empty(&work->entry)); |
1515 | 1515 | ||