Add macro for compound literal BUDDY_REQS

parent 7d28bddd
......@@ -572,8 +572,8 @@ struct foo {
};
*/
#define BUDDY_REQS_STK(b, size) \
&(struct buddy_reqs) { \
#define BUDDY_REQS_LIT(b, size) \
{ \
.magic = BUDDY_REQS_MAGIC, \
.space = (size), \
.buddy = (b), \
......@@ -582,6 +582,7 @@ struct foo {
.i_reqalloc = (struct i_reqalloc[size + 1]){{0}}, \
BUDDY_REQS_AUDIT_INIT(,COMMA) \
}
#define BUDDY_REQS_STK(b, size) &(struct buddy_reqs)BUDDY_REQS_LIT(b, size)
#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