aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mpow.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2025-10-03 14:11:06 +0000
committerDavid Sterba <[email protected]>2025-10-13 20:36:38 +0000
commit8aec9dbf2db2e958de5bd20e23b8fbb8f2aa1fa6 (patch)
treeac20695dc93ef43316ece1108bffc0c466bb4397 /lib/mpi/mpi-mpow.c
parentbtrfs: tree-checker: fix bounds check in check_inode_extref() (diff)
downloadkernel-8aec9dbf2db2e958de5bd20e23b8fbb8f2aa1fa6.tar.gz
kernel-8aec9dbf2db2e958de5bd20e23b8fbb8f2aa1fa6.zip
btrfs: send: fix -Wflex-array-member-not-at-end warning in struct send_ctx
The warning -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Fix the following warning: fs/btrfs/send.c:181:24: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] and move the declaration of send_ctx::cur_inode_path to the end. Notice that struct fs_path contains a flexible array member inline_buf, but also a padding array and a limit calculated for the usable space of inline_buf (FS_PATH_INLINE_SIZE). It is not the pattern where flexible array is in the middle of a structure and could potentially overwrite other members. Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mpow.c')
0 files changed, 0 insertions, 0 deletions