Skip to content

Commit

Permalink
freevxfs: Replace one-element array with flexible array member
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
toblux authored and brauner committed Nov 6, 2024
1 parent cb80d90 commit fdfa4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/freevxfs/vxfs_dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};

/*
Expand Down

0 comments on commit fdfa4c0

Please sign in to comment.