Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Cleanup DEFINE_WAIT

Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

blaisorblade@yahoo.it and committed by
Linus Torvalds
7e43c84e 187a1a94

+1 -3
+1 -3
include/linux/wait.h
··· 386 386 wait_queue_t name = { \ 387 387 .task = current, \ 388 388 .func = autoremove_wake_function, \ 389 - .task_list = { .next = &(name).task_list, \ 390 - .prev = &(name).task_list, \ 391 - }, \ 389 + .task_list = LIST_HEAD_INIT((name).task_list), \ 392 390 } 393 391 394 392 #define DEFINE_WAIT_BIT(name, word, bit) \