diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-11-28 12:22:55 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:39 -0500 |
commit | 62286a08c3f352d2c19c08da3b2a5b9d23f34d61 (patch) | |
tree | 06e44c4668c03a4efe46ba5401a3446790e4111a /fs/bcachefs/replicas_types.h | |
parent | 8a4b4c52c0031f7f40261e41d66922a1049f0407 (diff) | |
download | linux-62286a08c3f352d2c19c08da3b2a5b9d23f34d61.tar.gz linux-62286a08c3f352d2c19c08da3b2a5b9d23f34d61.tar.bz2 linux-62286a08c3f352d2c19c08da3b2a5b9d23f34d61.zip |
bcachefs: Replace zero-length arrays with flexible-array members
Fake flexible arrays (zero-length and one-element arrays) are
deprecated, and should be replaced by flexible-array members.
So, replace zero-length arrays with flexible-array members
in multiple structures.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas_types.h')
-rw-r--r-- | fs/bcachefs/replicas_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/replicas_types.h b/fs/bcachefs/replicas_types.h index 030324078bba..ac90d142c4e8 100644 --- a/fs/bcachefs/replicas_types.h +++ b/fs/bcachefs/replicas_types.h @@ -21,7 +21,7 @@ struct replicas_delta_list { u64 nr_inodes; u64 persistent_reserved[BCH_REPLICAS_MAX]; struct {} memset_end; - struct replicas_delta d[0]; + struct replicas_delta d[]; }; #endif /* _BCACHEFS_REPLICAS_TYPES_H */ |