diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2019-10-16 07:24:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-16 12:20:58 -0400 |
commit | bc88f85c6c09306bd21917e1ae28205e9cd775a7 (patch) | |
tree | 387e33861a4a4f8ec9eff6e1fe55032e3dd92524 /kernel | |
parent | 3b1f00aceb7a67bf079a5a64aa5c6baf78a8f442 (diff) |
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kthread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index 621467c33fef..b262f47046ca 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c | |||
@@ -866,9 +866,9 @@ void kthread_delayed_work_timer_fn(struct timer_list *t) | |||
866 | } | 866 | } |
867 | EXPORT_SYMBOL(kthread_delayed_work_timer_fn); | 867 | EXPORT_SYMBOL(kthread_delayed_work_timer_fn); |
868 | 868 | ||
869 | void __kthread_queue_delayed_work(struct kthread_worker *worker, | 869 | static void __kthread_queue_delayed_work(struct kthread_worker *worker, |
870 | struct kthread_delayed_work *dwork, | 870 | struct kthread_delayed_work *dwork, |
871 | unsigned long delay) | 871 | unsigned long delay) |
872 | { | 872 | { |
873 | struct timer_list *timer = &dwork->timer; | 873 | struct timer_list *timer = &dwork->timer; |
874 | struct kthread_work *work = &dwork->work; | 874 | struct kthread_work *work = &dwork->work; |