docs: deprecated.rst: Add note about DECLARE_FLEX_ARRAY() usage
authorKees Cook <keescook@chromium.org>
Fri, 6 Jan 2023 20:06:04 +0000 (12:06 -0800)
committerJonathan Corbet <corbet@lwn.net>
Fri, 13 Jan 2023 16:26:19 +0000 (09:26 -0700)
commit8763a30bc15b36c3bd90d6da7272d972b995f318
tree3671cecf70a641d4b5dbd130a5d7b9862da15a21
parent5a37deab42ad1630b39bf9bca13aa55e94310b01
docs: deprecated.rst: Add note about DECLARE_FLEX_ARRAY() usage

There wasn't any mention of when/where DECLARE_FLEX_ARRAY() should be
used, so add the rationale and an example to the deprecation docs.

Suggested-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230106200600.never.735-kees@kernel.org
[jc: minor wording tweaks]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/process/deprecated.rst