Skip to content

Commit

Permalink
workqueue: make delayed_work_timer_fn() static
Browse files Browse the repository at this point in the history
delayed_work_timer_fn() is a timer function, make it static.

Signed-off-by: Li Zefan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Feb 8, 2008
1 parent ae16106 commit 6d141c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ static inline void timer_stats_timer_clear_start_info(struct timer_list *timer)
}
#endif

extern void delayed_work_timer_fn(unsigned long __data);

/**
* add_timer - start a timer
* @timer: the timer to be added
Expand Down
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int queue_work(struct workqueue_struct *wq, struct work_struct *work)
}
EXPORT_SYMBOL_GPL(queue_work);

void delayed_work_timer_fn(unsigned long __data)
static void delayed_work_timer_fn(unsigned long __data)
{
struct delayed_work *dwork = (struct delayed_work *)__data;
struct cpu_workqueue_struct *cwq = get_wq_data(&dwork->work);
Expand Down

0 comments on commit 6d141c3

Please sign in to comment.