Skip to content

Commit fdfa4c0

Browse files
tobluxbrauner
authored andcommitted
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: KSPP#79 Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent cb80d90 commit fdfa4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/freevxfs/vxfs_dir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
struct vxfs_dirblk {
2626
__fs16 d_free; /* free space in dirblock */
2727
__fs16 d_nhash; /* no of hash chains */
28-
__fs16 d_hash[1]; /* hash chain */
28+
__fs16 d_hash[]; /* hash chain */
2929
};
3030

3131
/*

0 commit comments

Comments
 (0)