IO log fixes
[fio.git] / list.h
diff --git a/list.h b/list.h
index 2e0a7ad7eae671a3b0d20706dc9d741f549ab4eb..cedbafaae022de9267bcfd02296410a0b42c3465 100644 (file)
--- 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)