]> git.ipfire.org Git - thirdparty/linux.git/commit
dlm: Avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 22 Sep 2025 14:20:47 +0000 (16:20 +0200)
committerDavid Teigland <teigland@redhat.com>
Mon, 2 Feb 2026 15:40:41 +0000 (09:40 -0600)
commit2c3a0b730012ef87aaaf35243e1fbe9880666f7c
tree7f18c27d567d24b85eb20ade2ff04ca79ff457a7
parent6dda4f0a31b0b8c0824cb63ebda600e6da886e1d
dlm: Avoid -Wflex-array-member-not-at-end warning

-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

Move the conflicting declaration to the end of the corresponding
structure. Notice that `struct dlm_message` is a flexible
structure, this is a structure that contains a flexible-array
member.

Fix the following warning:

fs/dlm/dlm_internal.h:609:33: 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: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h