|
@@ -17,7 +17,7 @@ struct workqueue_struct;
|
|
|
|
|
|
struct work_struct;
|
|
|
typedef void (*work_func_t)(struct work_struct *work);
|
|
|
-void delayed_work_timer_fn(unsigned long __data);
|
|
|
+void delayed_work_timer_fn(struct timer_list *t);
|
|
|
|
|
|
/*
|
|
|
* The first word is the work queue pointer and the flags rolled into
|
|
@@ -175,8 +175,8 @@ struct execute_work {
|
|
|
|
|
|
#define __DELAYED_WORK_INITIALIZER(n, f, tflags) { \
|
|
|
.work = __WORK_INITIALIZER((n).work, (f)), \
|
|
|
- .timer = __TIMER_INITIALIZER(delayed_work_timer_fn, \
|
|
|
- (unsigned long)&(n), \
|
|
|
+ .timer = __TIMER_INITIALIZER((TIMER_FUNC_TYPE)delayed_work_timer_fn,\
|
|
|
+ (TIMER_DATA_TYPE)&(n.timer), \
|
|
|
(tflags) | TIMER_IRQSAFE), \
|
|
|
}
|
|
|
|
|
@@ -241,8 +241,9 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
|
|
|
#define __INIT_DELAYED_WORK(_work, _func, _tflags) \
|
|
|
do { \
|
|
|
INIT_WORK(&(_work)->work, (_func)); \
|
|
|
- __setup_timer(&(_work)->timer, delayed_work_timer_fn, \
|
|
|
- (unsigned long)(_work), \
|
|
|
+ __setup_timer(&(_work)->timer, \
|
|
|
+ (TIMER_FUNC_TYPE)delayed_work_timer_fn, \
|
|
|
+ (TIMER_DATA_TYPE)&(_work)->timer, \
|
|
|
(_tflags) | TIMER_IRQSAFE); \
|
|
|
} while (0)
|
|
|
|
|
@@ -250,8 +251,8 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
|
|
|
do { \
|
|
|
INIT_WORK_ONSTACK(&(_work)->work, (_func)); \
|
|
|
__setup_timer_on_stack(&(_work)->timer, \
|
|
|
- delayed_work_timer_fn, \
|
|
|
- (unsigned long)(_work), \
|
|
|
+ (TIMER_FUNC_TYPE)delayed_work_timer_fn,\
|
|
|
+ (TIMER_DATA_TYPE)&(_work)->timer,\
|
|
|
(_tflags) | TIMER_IRQSAFE); \
|
|
|
} while (0)
|
|
|
|