]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: namespace: Avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 27 Mar 2025 00:17:44 +0000 (18:17 -0600)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Mar 2025 09:18:34 +0000 (10:18 +0100)
commit9e6901f17a719650be376f04d742bdbe1d7094ce
tree21245786b8f97eb9d1cc6a54a418e76d14130ee0
parent8de544883456d1cd86dc971e21e6e764f393c7d0
fs: namespace: 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 structure. Notice
that `struct statmount` is a flexible structure --a structure that
contains a flexible-array member.

Fix the following warning:

fs/namespace.c:5329:26: 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>
Link: https://lore.kernel.org/r/Z-SZKNdCiAkVJvqm@kspp
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c