From: Thorsten Blum Date: Sun, 3 Nov 2024 12:17:09 +0000 (+0100) Subject: freevxfs: Replace one-element array with flexible array member X-Git-Tag: v6.13-rc1~229^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdfa4c02e6dd6c67f5cef8d78c6204e1ff7e12ca;p=thirdparty%2Flinux.git freevxfs: Replace one-element array with flexible array member Replace the deprecated one-element array with a modern flexible array member in the struct vxfs_dirblk. Link: https://github.com/KSPP/linux/issues/79 Signed-off-by: Thorsten Blum Link: https://lore.kernel.org/r/20241103121707.102838-3-thorsten.blum@linux.dev Reviewed-by: Christoph Hellwig Signed-off-by: Christian Brauner --- diff --git a/fs/freevxfs/vxfs_dir.h b/fs/freevxfs/vxfs_dir.h index fbcd603365ad6..8c67627f2a3d9 100644 --- a/fs/freevxfs/vxfs_dir.h +++ b/fs/freevxfs/vxfs_dir.h @@ -25,7 +25,7 @@ struct vxfs_dirblk { __fs16 d_free; /* free space in dirblock */ __fs16 d_nhash; /* no of hash chains */ - __fs16 d_hash[1]; /* hash chain */ + __fs16 d_hash[]; /* hash chain */ }; /*