All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH tip/sched/core] wait: use LIST_HEAD_INIT() to initialize wait_queue_head
@ 2021-06-01 15:11 Julian Wiedmann
  2021-06-28 13:58 ` [tip: sched/core] " tip-bot2 for Julian Wiedmann
  0 siblings, 1 reply; 2+ messages in thread
From: Julian Wiedmann @ 2021-06-01 15:11 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot
  Cc: Julian Wiedmann, Dietmar Eggemann, Steven Rostedt, Ben Segall,
	Mel Gorman, Daniel Bristot de Oliveira, linux-kernel

Replace the open-coded initialization with the right macro.

Signed-off-by: Julian Wiedmann <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 fe10e8570a52..99c5f05718cd 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)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip: sched/core] wait: use LIST_HEAD_INIT() to initialize wait_queue_head
  2021-06-01 15:11 [PATCH tip/sched/core] wait: use LIST_HEAD_INIT() to initialize wait_queue_head Julian Wiedmann
@ 2021-06-28 13:58 ` tip-bot2 for Julian Wiedmann
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Julian Wiedmann @ 2021-06-28 13:58 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Julian Wiedmann, Peter Zijlstra (Intel), x86, linux-kernel

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@linux.ibm.com>
AuthorDate:    Tue, 01 Jun 2021 17:11:20 +02:00
Committer:     Peter Zijlstra <peterz@infradead.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@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-28 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 15:11 [PATCH tip/sched/core] wait: use LIST_HEAD_INIT() to initialize wait_queue_head Julian Wiedmann
2021-06-28 13:58 ` [tip: sched/core] " tip-bot2 for Julian Wiedmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.