summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2022-09-27 00:50:42 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-11-30 08:09:41 +0300
commit5df5365ae4f793ce2e555d7d836abde3f5bd55b4 (patch)
tree980ac66b0aa520ec77cc380687a96b95da01479f /fs/namei.c
parent02ca1732f41b23bfb5c062e52b5fc44105c0796a (diff)
downloadlinux-5df5365ae4f793ce2e555d7d836abde3f5bd55b4.tar.xz
net/mlx5e: Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper
Zero-length arrays are deprecated and we are moving towards adopting C99 flexible-array members, instead. So, replace zero-length arrays declarations in anonymous union with the new DECLARE_FLEX_ARRAY() helper macro. This helper allows for flexible-array members in unions. Link: https://github.com/KSPP/linux/issues/193 Link: https://github.com/KSPP/linux/issues/222 Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions