OSDN Git Service

docs: deprecated.rst: Update zero-length/one-element arrays section
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 1 Sep 2020 01:09:49 +0000 (20:09 -0500)
committerJonathan Corbet <corbet@lwn.net>
Wed, 9 Sep 2020 17:37:49 +0000 (11:37 -0600)
commit17dca0502314fa4855fae269dc86a1ce840a4d1a
tree49d4a558fbdd5aaf30a69910669b9eb817cbae93
parent9334e34fe1d5dec2bcfd41a4a1317d284ab1d61f
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>
Documentation/process/deprecated.rst