summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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)
/**