mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04: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:
parent
354b46b1a0
commit
1fe66ba572
3 changed files with 8 additions and 15 deletions
|
@ -177,7 +177,6 @@ struct execute_work {
|
|||
#define __DELAYED_WORK_INITIALIZER(n, f, tflags) { \
|
||||
.work = __WORK_INITIALIZER((n).work, (f)), \
|
||||
.timer = __TIMER_INITIALIZER((TIMER_FUNC_TYPE)delayed_work_timer_fn,\
|
||||
(TIMER_DATA_TYPE)&(n.timer), \
|
||||
(tflags) | TIMER_IRQSAFE), \
|
||||
}
|
||||
|
||||
|
@ -244,7 +243,6 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
|
|||
INIT_WORK(&(_work)->work, (_func)); \
|
||||
__setup_timer(&(_work)->timer, \
|
||||
(TIMER_FUNC_TYPE)delayed_work_timer_fn, \
|
||||
(TIMER_DATA_TYPE)&(_work)->timer, \
|
||||
(_tflags) | TIMER_IRQSAFE); \
|
||||
} while (0)
|
||||
|
||||
|
@ -253,7 +251,6 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
|
|||
INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
|
||||
__setup_timer_on_stack(&(_work)->timer, \
|
||||
(TIMER_FUNC_TYPE)delayed_work_timer_fn,\
|
||||
(TIMER_DATA_TYPE)&(_work)->timer,\
|
||||
(_tflags) | TIMER_IRQSAFE); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue