diff options
-rw-r--r-- | include/linux/swait.h | 1 | ||||
-rw-r--r-- | kernel/sched/swait.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/swait.h b/include/linux/swait.h index bf8cb0dee23c..d6a5e949e4ca 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h | |||
@@ -161,7 +161,6 @@ extern void swake_up(struct swait_queue_head *q); | |||
161 | extern void swake_up_all(struct swait_queue_head *q); | 161 | extern void swake_up_all(struct swait_queue_head *q); |
162 | extern void swake_up_locked(struct swait_queue_head *q); | 162 | extern void swake_up_locked(struct swait_queue_head *q); |
163 | 163 | ||
164 | extern void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait); | ||
165 | extern void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state); | 164 | extern void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state); |
166 | extern long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state); | 165 | extern long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state); |
167 | 166 | ||
diff --git a/kernel/sched/swait.c b/kernel/sched/swait.c index b6fb2c3b3ff7..e68bb1398b05 100644 --- a/kernel/sched/swait.c +++ b/kernel/sched/swait.c | |||
@@ -69,7 +69,7 @@ void swake_up_all(struct swait_queue_head *q) | |||
69 | } | 69 | } |
70 | EXPORT_SYMBOL(swake_up_all); | 70 | EXPORT_SYMBOL(swake_up_all); |
71 | 71 | ||
72 | void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) | 72 | static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) |
73 | { | 73 | { |
74 | wait->task = current; | 74 | wait->task = current; |
75 | if (list_empty(&wait->task_list)) | 75 | if (list_empty(&wait->task_list)) |