mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
timer: Switch callback prototype to take struct timer_list * argument
Since all callbacks have been converted, we can switch the core prototype to "struct timer_list *" now too. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
@@ -17,7 +17,7 @@ struct timer_list {
|
||||
*/
|
||||
struct hlist_node entry;
|
||||
unsigned long expires;
|
||||
void (*function)(unsigned long);
|
||||
void (*function)(struct timer_list *);
|
||||
u32 flags;
|
||||
|
||||
#ifdef CONFIG_LOCKDEP
|
||||
@@ -63,7 +63,7 @@ struct timer_list {
|
||||
|
||||
#define TIMER_TRACE_FLAGMASK (TIMER_MIGRATING | TIMER_DEFERRABLE | TIMER_PINNED | TIMER_IRQSAFE)
|
||||
|
||||
#define TIMER_DATA_TYPE unsigned long
|
||||
#define TIMER_DATA_TYPE struct timer_list *
|
||||
#define TIMER_FUNC_TYPE void (*)(TIMER_DATA_TYPE)
|
||||
|
||||
#define __TIMER_INITIALIZER(_function, _data, _flags) { \
|
||||
|
Reference in New Issue
Block a user