Skip to contentSkip to conversation

kthread: make __kthread_queue_delayed_work static

PATCH New Ben Dooks (Codethink) 1 participant 1 message Oct 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kthread: make __kthread_queue_delayed_work static

The __kthread_queue_delayed_work is not exported so make it static, to avoid the following sparse warning:

kernel/kthread.c:869:6: warning: symbol '__kthread_queue_delayed_work' was not declared. Should it be static?

---
Cc: [email protected]
Cc: [email protected]

---
 kernel/kthread.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/kthread.c +3 -3
index 621467c33fef..b262f47046ca 100644
@@ -866,9 +866,9 @@ void kthread_delayed_work_timer_fn(struct timer_list *t)
 }
 EXPORT_SYMBOL(kthread_delayed_work_timer_fn);
 
-void __kthread_queue_delayed_work(struct kthread_worker *worker,
-				  struct kthread_delayed_work *dwork,
-				  unsigned long delay)
+static void __kthread_queue_delayed_work(struct kthread_worker *worker,
+					 struct kthread_delayed_work *dwork,
+					 unsigned long delay)
 {
 	struct timer_list *timer = &dwork->timer;
 	struct kthread_work *work = &dwork->work;
Signature · 1 line
2.23.0