X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=list.h;h=cedbafaae022de9267bcfd02296410a0b42c3465;hp=2e0a7ad7eae671a3b0d20706dc9d741f549ab4eb;hb=7b395ca5d5f38d50f0c9d4c11fb2b51760caf119;hpb=5c4e1dbc4ec6ee963220c5f4e64a04cd6130dc81 diff --git a/list.h b/list.h index 2e0a7ad7..cedbafaa 100644 --- a/list.h +++ b/list.h @@ -28,6 +28,9 @@ struct list_head { #define LIST_HEAD_INIT(name) { &(name), &(name) } +#define LIST_HEAD(name) \ + struct list_head name = LIST_HEAD_INIT(name) + #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0)