lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <162488868420.395.8032632844768075125.tip-bot2@tip-bot2>
Date:   Mon, 28 Jun 2021 13:58:04 -0000
From:   "tip-bot2 for Julian Wiedmann" <tip-bot2@...utronix.de>
To:     linux-tip-commits@...r.kernel.org
Cc:     Julian Wiedmann <jwi@...ux.ibm.com>,
        "Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
        linux-kernel@...r.kernel.org
Subject: [tip: sched/core] wait: use LIST_HEAD_INIT() to initialize wait_queue_head

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     77eccd0dfae353a64a2088d308bed3b373a4220f
Gitweb:        https://git.kernel.org/tip/77eccd0dfae353a64a2088d308bed3b373a4220f
Author:        Julian Wiedmann <jwi@...ux.ibm.com>
AuthorDate:    Tue, 01 Jun 2021 17:11:20 +02:00
Committer:     Peter Zijlstra <peterz@...radead.org>
CommitterDate: Mon, 28 Jun 2021 15:42:25 +02:00

wait: use LIST_HEAD_INIT() to initialize wait_queue_head

Replace the open-coded initialization with the right macro.

Signed-off-by: Julian Wiedmann <jwi@...ux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://lkml.kernel.org/r/20210601151120.329223-1-jwi@linux.ibm.com
---
 include/linux/wait.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/wait.h b/include/linux/wait.h
index fe10e85..99c5f05 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)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ