Add macro for compound literal BUDDY_REQS

parent 7d28bddd
...@@ -572,8 +572,8 @@ struct foo { ...@@ -572,8 +572,8 @@ struct foo {
}; };
*/ */
#define BUDDY_REQS_STK(b, size) \ #define BUDDY_REQS_LIT(b, size) \
&(struct buddy_reqs) { \ { \
.magic = BUDDY_REQS_MAGIC, \ .magic = BUDDY_REQS_MAGIC, \
.space = (size), \ .space = (size), \
.buddy = (b), \ .buddy = (b), \
...@@ -582,6 +582,7 @@ struct foo { ...@@ -582,6 +582,7 @@ struct foo {
.i_reqalloc = (struct i_reqalloc[size + 1]){{0}}, \ .i_reqalloc = (struct i_reqalloc[size + 1]){{0}}, \
BUDDY_REQS_AUDIT_INIT(,COMMA) \ BUDDY_REQS_AUDIT_INIT(,COMMA) \
} }
#define BUDDY_REQS_STK(b, size) &(struct buddy_reqs)BUDDY_REQS_LIT(b, size)
#define BUDDY_RETURNS_MAX 255 #define BUDDY_RETURNS_MAX 255
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment