Skip to contentSkip to conversation

workqueue: make delayed_work_timer_fn() static

PATCH New Li Zefan 1 participant 1 message Jan 24, 2008

Subsystems (2)
lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 workqueue: make delayed_work_timer_fn() static

delayed_work_timer_fn() is a timer function, make it static.

---
 include/linux/timer.h |    2 --
 kernel/workqueue.c    |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
include/linux/timer.h +0 -2
index 78cf899..090fa5e 100644
@@ -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
kernel/workqueue.c +1 -1
index 52d5e7c..4d4715b 100644
@@ -176,7 +176,7 @@ int fastcall 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);

-- 1.5.4.rc3