sched/swait: Remove __prepare_to_swait
authorPeter Zijlstra <peterz@infradead.org>
Tue, 12 Jun 2018 08:34:50 +0000 (10:34 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 20 Jun 2018 09:35:56 +0000 (11:35 +0200)
There is no public user of this API, remove it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: bigeasy@linutronix.de
Cc: oleg@redhat.com
Cc: paulmck@linux.vnet.ibm.com
Cc: pbonzini@redhat.com
Link: https://lkml.kernel.org/r/20180612083909.157076812@infradead.org
include/linux/swait.h
kernel/sched/swait.c

index bf8cb0dee23c01ed150f081ffd95861b8d416803..d6a5e949e4ca5006a0870f720fb5ef7c68a17816 100644 (file)
@@ -161,7 +161,6 @@ extern void swake_up(struct swait_queue_head *q);
 extern void swake_up_all(struct swait_queue_head *q);
 extern void swake_up_locked(struct swait_queue_head *q);
 
-extern void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait);
 extern void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state);
 extern long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state);
 
index b6fb2c3b3ff73d6abe01beb5dc5b1bf3b181728d..e68bb1398b0536f35e89c8e0619e5bd54382199d 100644 (file)
@@ -69,7 +69,7 @@ void swake_up_all(struct swait_queue_head *q)
 }
 EXPORT_SYMBOL(swake_up_all);
 
-void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait)
+static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait)
 {
        wait->task = current;
        if (list_empty(&wait->task_list))