freevxfs: Replace one-element array with flexible array member
PATCH 1/1 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.
--- fs/freevxfs/vxfs_dir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/freevxfs/vxfs_dir.h +1 -1
@@ -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 */ };/*
Signature · 1 line
2.47.0
Quoted 5 lines · Thorsten Blum
Replace the deprecated one-element array with a modern flexible array member in the struct
vxfs_dirblk.Signed-off-by Thorsten Blum <[email protected]>
Might be worth adding that nothing does a sizeof of the type or variables of the type, so just hcanging it is fine.
Otherwise looks good:
Andrew, can you pick this up through -mm as there is no freevxfs tree?
Quoted 7 lines · On Tue, 5 Nov 2024 03:23:06 -0800 Christoph Hellwig <[email protected]> wrote:
Quoted 5 lines · Thorsten Blum
Replace the deprecated one-element array with a modern flexible array member in the struct
vxfs_dirblk.Signed-off-by Thorsten Blum <[email protected]>
Quoted 8 lines
Might be worth adding that nothing does a sizeof of the type or variables of the type, so just hcanging it is fine.
Otherwise looks good:
Reviewed-by Christoph Hellwig <[email protected]>Andrew, can you pick this up through -mm as there is no freevxfs tree?
I assume Christian can scoop this up?
Quoted 10 lines · Andrew Morton
Quoted 8 lines
Might be worth adding that nothing does a sizeof of the type or variables of the type, so just hcanging it is fine.
Otherwise looks good:
Reviewed-by Christoph Hellwig <[email protected]>Andrew, can you pick this up through -mm as there is no freevxfs tree?
I assume Christian can scoop this up?
Fine with me :)
Christian Brauner
AppliedQuoted 4 lines · Thorsten Blum
Replace the deprecated one-element array with a modern flexible array member in the struct
vxfs_dirblk.
Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc
[1/1] freevxfs: Replace one-element array with flexible array member
https://git.kernel.org/vfs/vfs/c/fdfa4c02e6dd