On September 4, 2023 5:31:00 AM PDT, Przemek Kitszel [off-list ref] wrote:
Add DEFINE_FLEX() macro, that helps on-stack allocation of structures
with trailing flex array member.
Expose __struct_size() macro which reads size of data allocated
by DEFINE_FLEX().
Accompany new macros introduction with actual usage,
in the ice driver - hence targeting for netdev tree
- please me know if it is best approach here?
Yes, I'm fine with this. The changes to the string headers are relatively localized.
--
Kees Cook