diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2025-04-30 13:22:01 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-30 15:35:03 -0400 |
commit | 2f1171b09647142da831c47675b419da3fdf4707 (patch) | |
tree | 94a30717fe8963034e62354aafe1322fdfd2e570 /include/linux/compiler_attributes.h | |
parent | 818de5a9022203c66c20ac9c72793558818e5125 (diff) |
bcachefs: Avoid -Wflex-array-member-not-at-end warnings
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.
Refactor a couple of structs that contain flexible arrays in the
middle by replacing them with unions.
So, with these changes, fix the following warnings:
fs/bcachefs/disk_accounting.c:429:51: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
fs/bcachefs/ec_types.h:8:41: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions