From: Oleg Nesterov <oleg@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Samu Onkalo <samu.p.onkalo@nokia.com>, Tejun Heo <tj@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT()
Date: Wed, 24 Feb 2010 21:20:38 +0100 [thread overview]
Message-ID: <20100224202038.GA26998@redhat.com> (raw)
Cosmetic. Don't hide WORK_STRUCT_STATIC from grep.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
include/linux/workqueue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wq/include/linux/workqueue.h~3_STATIC_INIT_USE_STATIC 2010-02-24 20:33:43.000000000 +0100
+++ wq/include/linux/workqueue.h 2010-02-24 21:01:20.000000000 +0100
@@ -36,7 +36,7 @@ struct work_struct {
};
#define WORK_DATA_INIT() ATOMIC_LONG_INIT(0)
-#define WORK_DATA_STATIC_INIT() ATOMIC_LONG_INIT(2)
+#define WORK_DATA_STATIC_INIT() ATOMIC_LONG_INIT(1UL << WORK_STRUCT_STATIC)
struct delayed_work {
struct work_struct work;
next reply other threads:[~2010-02-24 20:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-24 20:20 Oleg Nesterov [this message]
2010-02-25 3:09 ` [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT() Tejun Heo
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=20100224202038.GA26998@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=samu.p.onkalo@nokia.com \
--cc=tj@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.