diff options
author | 2024-11-01 14:45:23 -0600 | |
---|---|---|
committer | 2024-11-13 12:56:48 -0500 | |
commit | 2bd9077b6261b8f1281d0fa74d51afe090319263 (patch) | |
tree | 2286787b9fc503a7f752da9148ce4ef3ace5131a /scripts/gdb/linux/modules.py | |
parent | ext4: use str_yes_no() helper function (diff) | |
download | wireguard-linux-2bd9077b6261b8f1281d0fa74d51afe090319263.tar.xz wireguard-linux-2bd9077b6261b8f1281d0fa74d51afe090319263.zip |
jbd2: avoid dozens of -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.
Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of
a flexible structure (`struct shash_desc`) where the size of the
flexible-array member (`__ctx`) is known at compile-time, and
refactor the rest of the code, accordingly.
So, with this, fix 77 of the following warnings:
include/linux/jbd2.h:1800:35: 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>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/ZyU94w0IALVhc9Jy@kspp
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions