From: "Matti Annala" <gval@mbnet.fi>
To: "Kernel Mailinglist" <linux-kernel@vger.kernel.org>,
"Dave Jones" <davej@suse.de>
Subject: [PATCH] wait.h cleanup
Date: Sat, 16 Nov 2002 11:22:26 +0200 [thread overview]
Message-ID: <001501c28d51$aef73860$5ca464c2@windows> (raw)
The patch below slightly cleans up the waitqueue initialization macros and
removes a useless comment from the header (the macro names are clear enough).
Comments?
--------------------------------------------------------------------------------
diff -ur linux-2.5.47/include/linux/wait.h difflinux/include/linux/wait.h
--- linux-2.5.47/include/linux/wait.h 2002-11-05 00:30:31.000000000 +0200
+++ difflinux/include/linux/wait.h 2002-11-14 09:40:37.000000000 +0200
@@ -37,21 +37,16 @@
};
typedef struct __wait_queue_head wait_queue_head_t;
-
-/*
- * Macros for declaration and initialisaton of the datatypes
- */
-
-#define __WAITQUEUE_INITIALIZER(name, tsk) { \
+#define __WAITQUEUE_INITIALIZER(tsk) { \
.task = tsk, \
- .func = default_wake_function, \
+ .func = default_wake_function, \
.task_list = { NULL, NULL } }
-#define DECLARE_WAITQUEUE(name, tsk) \
- wait_queue_t name = __WAITQUEUE_INITIALIZER(name, tsk)
+#define DECLARE_WAITQUEUE(name, tsk) \
+ wait_queue_t name = __WAITQUEUE_INITIALIZER(tsk)
-#define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
- .lock = SPIN_LOCK_UNLOCKED, \
+#define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
+ .lock = SPIN_LOCK_UNLOCKED, \
.task_list = { &(name).task_list, &(name).task_list } }
#define DECLARE_WAIT_QUEUE_HEAD(name) \
reply other threads:[~2002-11-16 8:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001501c28d51$aef73860$5ca464c2@windows' \
--to=gval@mbnet.fi \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.