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 <[email protected]> Signed-off-by: Kees Cook <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 38a381a commit e5f5ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)