History

treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts

With all callbacks converted, and the timer callback prototype switched over, the TIMER_FUNC_TYPE cast is no longer needed, so remove it. Conversion was done with the following scripts: perl -pi -e 's|\(TIMER_FUNC_TYPE\)||g' \ $(git grep TIMER_FUNC_TYPE | cut -d: -f1 | sort -u) perl -pi -e 's|\(TIMER_DATA_TYPE\)||g' \ $(git grep TIMER_DATA_TYPE | cut -d: -f1 | sort -u) The now unused macros are also dropped from include/linux/timer.h.

Kees Cook committed 9 years ago

Commit 841b86f1 parent 919b25044 files · +84 −87Browse files

Showing the changes to kernel/workqueue.c (1 of 44 files). Show all

Unified · Split

kernel/workqueue.c+1−1
@@ -1509,7 +1509,7 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, · 1508 unmodified lines
15091509 struct work_struct *work = &dwork->work;
15101510
15111511 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);
15131513 WARN_ON_ONCE(timer_pending(timer));
15141514 WARN_ON_ONCE(!list_empty(&work->entry));
15151515