Skip to content
Commit 17dca050 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jonathan Corbet
Browse files

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: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200901010949.GA21398@embeddedor


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 9334e34f
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