public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] workqueue: make delayed_work_timer_fn() static
@ 2008-01-24  9:13 Li Zefan
  0 siblings, 0 replies; only message in thread
From: Li Zefan @ 2008-01-24  9:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Ingo Molnar, LKML


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

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>

---
 include/linux/timer.h |    2 --
 kernel/workqueue.c    |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/include/linux/timer.h b/include/linux/timer.h
index 78cf899..090fa5e 100644
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -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
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 52d5e7c..4d4715b 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-24  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24  9:13 [PATCH] workqueue: make delayed_work_timer_fn() static Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox