Skip to content

Commit e5f5ee8

Browse files
keeskdave
authored andcommitted
affs: struct affs_data_head: Replace 1-element array with flexible array
Replace the deprecated[1] use of a 1-element array in struct affs_data_head with a modern flexible array. No binary differences are present after this conversion. Link: KSPP#79 [1] Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Kees Cook <kees@kernel.org> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 38a381a commit e5f5ee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/affs/amigaffs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct affs_data_head
119119
__be32 size;
120120
__be32 next;
121121
__be32 checksum;
122-
u8 data[1]; /* depends on block size */
122+
u8 data[]; /* depends on block size */
123123
};
124124

125125
/* Permission bits */

0 commit comments

Comments
 (0)