summaryrefslogtreecommitdiff
path: root/fs/affs/amigaffs.h
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-08-27 15:48:40 +0300
committerDavid Sterba <dsterba@suse.com>2024-09-06 18:48:15 +0300
commitbf751ad062b58d0750a5b9fb77d1400532a0ea44 (patch)
treead85ad1ee996eea13e763a27c6de9655cc76fbd6 /fs/affs/amigaffs.h
parent112bcd25980e0568e5154837c03b534afb31cc39 (diff)
downloadlinux-bf751ad062b58d0750a5b9fb77d1400532a0ea44.tar.xz
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: https://github.com/KSPP/linux/issues/79 Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/affs/amigaffs.h')
-rw-r--r--fs/affs/amigaffs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/affs/amigaffs.h b/fs/affs/amigaffs.h
index 1b973a669d23..da3217ab6adb 100644
--- a/fs/affs/amigaffs.h
+++ b/fs/affs/amigaffs.h
@@ -49,12 +49,13 @@ struct affs_short_date {
struct affs_root_head {
__be32 ptype;
+ /* The following fields are not used, but kept as documentation. */
__be32 spare1;
__be32 spare2;
__be32 hash_size;
__be32 spare3;
__be32 checksum;
- __be32 hashtable[1];
+ __be32 hashtable[];
};
struct affs_root_tail {