Skip to content

Commit

Permalink
kthread: make __kthread_queue_delayed_work static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
bjdooks-ct authored and torvalds committed Oct 16, 2019
1 parent 3b1f00a commit bc88f85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/kthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc88f85

Please sign in to comment.