From: Julian Wiedmann Date: Tue, 1 Jun 2021 15:11:20 +0000 (+0200) Subject: wait: use LIST_HEAD_INIT() to initialize wait_queue_head X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=77eccd0dfae353a64a2088d308bed3b373a4220f;p=linux.git wait: use LIST_HEAD_INIT() to initialize wait_queue_head Replace the open-coded initialization with the right macro. Signed-off-by: Julian Wiedmann Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20210601151120.329223-1-jwi@linux.ibm.com --- diff --git a/include/linux/wait.h b/include/linux/wait.h index fe10e8570a522..99c5f05718cdf 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)