summaryrefslogtreecommitdiff
path: root/include/linux/wait.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-08-20 12:33:05 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-08-20 12:33:05 +0200
commitc94d89fafa49ba70fedbb01cb52dfbbdd7dc0986 (patch)
treeca4af4efcc3ac38dcb26ccf99acf62f7d30ebcc3 /include/linux/wait.h
parent7c60610d476766e128cc4284bb6349732cbd6606 (diff)
parent234b8ab6476c5edd5262e2ff563de9498d60044a (diff)
Merge branch 'sched/core'
Diffstat (limited to 'include/linux/wait.h')
-rw-r--r--include/linux/wait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/wait.h b/include/linux/wait.h
index 6598ae35e1b5..93dab0e9580f 100644
--- a/include/linux/wait.h
+++ b/include/linux/wait.h
@@ -56,7 +56,7 @@ struct task_struct;
#define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
.lock = __SPIN_LOCK_UNLOCKED(name.lock), \
- .head = { &(name).head, &(name).head } }
+ .head = LIST_HEAD_INIT(name.head) }
#define DECLARE_WAIT_QUEUE_HEAD(name) \
struct wait_queue_head name = __WAIT_QUEUE_HEAD_INITIALIZER(name)