[Intel-wired-lan] [RFC net-next v4 0/7] introduce DEFINE_FLEX() macro
Kees Cook
kees at kernel.org
Tue Sep 5 03:53:27 UTC 2023
On September 4, 2023 5:31:00 AM PDT, Przemek Kitszel <przemyslaw.kitszel at intel.com> 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
More information about the Intel-wired-lan
mailing list