diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-11-28 19:22:55 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 17:47:39 +0100 |
commit | 62286a08c3f352d2c19c08da3b2a5b9d23f34d61 (patch) | |
tree | 06e44c4668c03a4efe46ba5401a3446790e4111a /fs/bcachefs/move.c | |
parent | bcachefs: more write buffer refactoring (diff) | |
download | linux-62286a08c3f352d2c19c08da3b2a5b9d23f34d61.tar.xz 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/move.c')
-rw-r--r-- | fs/bcachefs/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index a6db46a70f15..bc545613f793 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -70,7 +70,7 @@ struct moving_io { struct data_update write; /* Must be last since it is variable size */ - struct bio_vec bi_inline_vecs[0]; + struct bio_vec bi_inline_vecs[]; }; static void move_free(struct moving_io *io) |