freevxfs: Replace one-element array with flexible array member
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 3 Nov 2024 12:17:09 +0000 (13:17 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 6 Nov 2024 09:42:06 +0000 (10:42 +0100)
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 <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20241103121707.102838-3-thorsten.blum@linux.dev
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/freevxfs/vxfs_dir.h

index fbcd603365ad62109b78332ec27c6de5f16673a2..8c67627f2a3d930f44ea20bcfd4eb64f4ee92df5 100644 (file)
@@ -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 */
 };
 
 /*