carl9170: Replace zero-length arrays with flexible-array members
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 16 Feb 2022 19:49:55 +0000 (13:49 -0600)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 17 Feb 2022 16:49:52 +0000 (17:49 +0100)
commit8a111bf964b4283bfbdb3070d024370e2835a592
treee20617d53b30bf515eb57621d979b80486e4bfe5
parentcd480b98bf01954c7892ff630da2dc8ecddd053d
carl9170: Replace zero-length arrays with flexible-array members

There is a regular need in the kernel to provide a way to declare
having a dynamically sized set of trailing elements in a structure.
Kernel code should always use “flexible array members”[1] for these
cases. The older style of one-element or zero-length arrays should
no longer be used[2].

[1] https://en.wikipedia.org/wiki/Flexible_array_member
[2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays

Link: https://github.com/KSPP/linux/issues/78
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/shared/fwdesc.h
include/shared/wlan.h