Messages in this thread Patch in this message | | | Subject | [patch 1/1] Cleanup DEFINE_WAIT | From | blaisorblade@yahoo ... | Date | Wed, 25 May 2005 01:31:42 +0200 |
| |
Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> ---
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |