mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
timer: Remove unused data arguments from macros
With the .data field removed, the ignored data arguments in timer macros can be removed. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tejun Heo <tj@kernel.org> Cc: Lai Jiangshan <jiangshanlai@gmail.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Shaohua Li <shli@fb.com> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
@@ -119,7 +119,6 @@ struct kthread_delayed_work {
|
||||
#define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \
|
||||
.work = KTHREAD_WORK_INIT((dwork).work, (fn)), \
|
||||
.timer = __TIMER_INITIALIZER((TIMER_FUNC_TYPE)kthread_delayed_work_timer_fn,\
|
||||
(TIMER_DATA_TYPE)&(dwork.timer), \
|
||||
TIMER_IRQSAFE), \
|
||||
}
|
||||
|
||||
@@ -167,7 +166,6 @@ extern void __kthread_init_worker(struct kthread_worker *worker,
|
||||
kthread_init_work(&(dwork)->work, (fn)); \
|
||||
__setup_timer(&(dwork)->timer, \
|
||||
(TIMER_FUNC_TYPE)kthread_delayed_work_timer_fn,\
|
||||
(TIMER_DATA_TYPE)&(dwork)->timer, \
|
||||
TIMER_IRQSAFE); \
|
||||
} while (0)
|
||||
|
||||
|
Reference in New Issue
Block a user