Skip to content

Commit bf751ad

Browse files
tobluxkdave
authored andcommitted
affs: Replace one-element array with flexible-array member
Replace the deprecated one-element array with a modern flexible-array member in the struct affs_root_head. Add a comment that most struct members are not used, but kept as documentation. Link: KSPP/linux#79 Signed-off-by: Thorsten Blum <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 112bcd2 commit bf751ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/affs/amigaffs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ struct affs_short_date {
4949

5050
struct affs_root_head {
5151
__be32 ptype;
52+
/* The following fields are not used, but kept as documentation. */
5253
__be32 spare1;
5354
__be32 spare2;
5455
__be32 hash_size;
5556
__be32 spare3;
5657
__be32 checksum;
57-
__be32 hashtable[1];
58+
__be32 hashtable[];
5859
};
5960

6061
struct affs_root_tail {

0 commit comments

Comments
 (0)