diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 924a2e81519e..f6b247134874 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1528,7 +1528,9 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, struct work_struct *work = &dwork->work; WARN_ON_ONCE(!wq); +#ifndef CONFIG_CFI WARN_ON_ONCE(timer->function != delayed_work_timer_fn); +#endif WARN_ON_ONCE(timer_pending(timer)); WARN_ON_ONCE(!list_empty(&work->entry));