summaryrefslogtreecommitdiff
path: root/libbcachefs/fifo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/fifo.h')
-rw-r--r--libbcachefs/fifo.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libbcachefs/fifo.h b/libbcachefs/fifo.h
index 0a9c0c9f..98f22f6a 100644
--- a/libbcachefs/fifo.h
+++ b/libbcachefs/fifo.h
@@ -3,11 +3,13 @@
#include "util.h"
-#define DECLARE_FIFO(type, name) \
- struct { \
- size_t front, back, size, mask; \
- type *data; \
- } name
+#define FIFO(type) \
+struct { \
+ size_t front, back, size, mask; \
+ type *data; \
+}
+
+#define DECLARE_FIFO(type, name) FIFO(type) name
#define fifo_buf_size(fifo) \
(roundup_pow_of_two((fifo)->size) * sizeof((fifo)->data[0]))