Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Thorsten Blum and committed by
Christian Brauner
fdfa4c02 cb80d907

+1 -1
+1 -1
fs/freevxfs/vxfs_dir.h
··· 25 25 struct vxfs_dirblk { 26 26 __fs16 d_free; /* free space in dirblock */ 27 27 __fs16 d_nhash; /* no of hash chains */ 28 - __fs16 d_hash[1]; /* hash chain */ 28 + __fs16 d_hash[]; /* hash chain */ 29 29 }; 30 30 31 31 /*