diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2021-12-06 15:17:02 +0300 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2021-12-08 04:42:19 +0300 |
commit | 7acc3d1afd02a956f2a6fbe0e8395698943c9686 (patch) | |
tree | 9e3d49524aff5949c109d8566476c516905d04d3 /arch/riscv | |
parent | 40452ffca3c1a0f2994e826f9fa213b107f1a2d4 (diff) | |
download | linux-7acc3d1afd02a956f2a6fbe0e8395698943c9686.tar.xz |
erofs: Replace zero-length array with flexible-array member
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.15/process/deprecated.html#zero-length-and-one-element-arrays
Link: https://lore.kernel.org/r/20211206121702.221331-1-hsiangkao@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'arch/riscv')
0 files changed, 0 insertions, 0 deletions