diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-01 01:05:22 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-04 21:17:11 +0300 |
commit | 6dfa10ab22a6a322269a3454d7ac720dc2f8bf11 (patch) | |
tree | e27926b981d8aa5eb8f282747d34c11e55f0f4db /fs/bcachefs/bcachefs_format.h | |
parent | 4db8ac8629b1ee75316849b0e8ea5bbf90335706 (diff) | |
download | linux-6dfa10ab22a6a322269a3454d7ac720dc2f8bf11.tar.xz |
bcachefs: Fix build errors with gcc 10
gcc 10 seems to complain about array bounds in situations where gcc 11
does not - curious.
This unfortunately requires adding some casts for now; we may
investigate getting rid of our __u64 _data[] VLA in a future patch so
that our start[0] members can be VLAs.
Reported-by: John Stoffel <john@stoffel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r-- | fs/bcachefs/bcachefs_format.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 29b000c6b7e1..5b44598b9df9 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -1617,9 +1617,7 @@ struct journal_seq_blacklist_entry { struct bch_sb_field_journal_seq_blacklist { struct bch_sb_field field; - - struct journal_seq_blacklist_entry start[0]; - __u64 _data[]; + struct journal_seq_blacklist_entry start[]; }; struct bch_sb_field_errors { |