commit | 17dca0502314fa4855fae269dc86a1ce840a4d1a | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Mon Aug 31 20:09:49 2020 -0500 |
committer | Jonathan Corbet <corbet@lwn.net> | Wed Sep 09 11:37:49 2020 -0600 |
tree | 49d4a558fbdd5aaf30a69910669b9eb817cbae93 | |
parent | 9334e34fe1d5dec2bcfd41a4a1317d284ab1d61f [diff] |
docs: deprecated.rst: Update zero-length/one-element arrays section Update information in the zero-length and one-element arrays section and illustrate how to make use of the new flex_array_size() helper, together with struct_size() and a flexible-array member. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Acked-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20200901010949.GA21398@embeddedor Signed-off-by: Jonathan Corbet <corbet@lwn.net>