commit | 01081be1ea8cc123c96256ff0c975643cd862609 | [log] [tgz] |
---|---|---|
author | José Expósito <jose.exposito89@gmail.com> | Sat Dec 04 18:13:49 2021 +0100 |
committer | Jakub Kicinski <kuba@kernel.org> | Mon Dec 06 16:29:27 2021 -0800 |
tree | 5d473d4b5b1aa3883fbe4f5cbb38f8f1685e7f04 | |
parent | 5382911f5d67a5a13815fb6958265b4a11ff7cfd [diff] |
net: prestera: replace zero-length array with flexible-array member One-element and zero-length arrays are deprecated and should be replaced with flexible-array members: https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays Replace zero-length array with flexible-array member and make use of the struct_size() helper. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: José Expósito <jose.exposito89@gmail.com> Reviewed-by: Volodymyr Mytnyk <vmytnyk@marvell.com> Tested-by: Volodymyr Mytnyk <vmytnyk@marvell.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20211204171349.22776-1-jose.exposito89@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>