Hi!
From: Gustavo A. R. Silva gustavoars@kernel.org
[ Upstream commit 47e36ed7840661a9f7fb53554a1b04a5f8daffea ]
Currently, to statically initialize the struct members of the `type` object created by _DEFINE_FLEX(), the internal `obj` member must be explicitly referenced at the call site. See:
struct flex { int a; int b; struct foo flex_array[]; };
_DEFINE_FLEX(struct flex, instance, flex_array, FIXED_SIZE, = { .obj = { .a = 0, .b = 1, }, });
This leaks _DEFINE_FLEX() internal implementation details and make the helper harder to use and read.
Not sure why this was selected for -stable.
BR, Pavel