bcachefs: Replace zero-length arrays with flexible-array members
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 28 Nov 2023 18:22:55 +0000 (12:22 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:39 +0000 (11:47 -0500)
commit62286a08c3f352d2c19c08da3b2a5b9d23f34d61
tree06e44c4668c03a4efe46ba5401a3446790e4111a
parent8a4b4c52c0031f7f40261e41d66922a1049f0407
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>
fs/bcachefs/bcachefs_ioctl.h
fs/bcachefs/io_read.c
fs/bcachefs/move.c
fs/bcachefs/replicas_types.h