Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
---
linux-2.6.git-paolo/include/linux/wait.h | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -puN include/linux/wait.h~clean-use-list-init include/linux/wait.h
--- linux-2.6.git/include/linux/wait.h~clean-use-list-init 2005-05-25 01:28:20.000000000 +0200
+++ linux-2.6.git-paolo/include/linux/wait.h 2005-05-25 01:28:20.000000000 +0200
@@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait
wait_queue_t name = { \
.task = current, \
.func = autoremove_wake_function, \
- .task_list = { .next = &(name).task_list, \
- .prev = &(name).task_list, \
- }, \
+ .task_list = LIST_HEAD_INIT((name).task_list), \
}
#define DEFINE_WAIT_BIT(name, word, bit) \
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]