summaryrefslogtreecommitdiff
path: root/include/linux/wait.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-12-16 17:20:49 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-16 17:20:49 -0800
commitf89cf87cb3bf03fd238c5eb5bbc0c55ea919db06 (patch)
treeb7fb001f5cc16f4b3a142c4b447817f9dfe89c7f /include/linux/wait.h
parent61ed66637a4a3a0e0e58c1e0f8ae8e3f0783c852 (diff)
[PATCH] parenthesize init_wait() macro parameters
Addresses bug #3863, from <daveh@dmh2000.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/wait.h')
-rw-r--r--include/linux/wait.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/wait.h b/include/linux/wait.h
index 8b3a2b86d92a..ddb0a16f31c9 100644
--- a/include/linux/wait.h
+++ b/include/linux/wait.h
@@ -326,8 +326,8 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
wait_queue_t name = { \
.task = current, \
.func = autoremove_wake_function, \
- .task_list = { .next = &name.task_list, \
- .prev = &name.task_list, \
+ .task_list = { .next = &(name).task_list, \
+ .prev = &(name).task_list, \
}, \
}
@@ -338,15 +338,15 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
.task = current, \
.func = wake_bit_function, \
.task_list = \
- LIST_HEAD_INIT(name.wait.task_list), \
+ LIST_HEAD_INIT((name).wait.task_list), \
}, \
}
#define init_wait(wait) \
do { \
- wait->task = current; \
- wait->func = autoremove_wake_function; \
- INIT_LIST_HEAD(&wait->task_list); \
+ (wait)->task = current; \
+ (wait)->func = autoremove_wake_function; \
+ INIT_LIST_HEAD(&(wait)->task_list); \
} while (0)
/**