Commit 9e6901f
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>1 parent 8de5448 commit 9e6901f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5326 | 5326 | | |
5327 | 5327 | | |
5328 | 5328 | | |
5329 | | - | |
5330 | 5329 | | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
5331 | 5333 | | |
5332 | 5334 | | |
5333 | 5335 | | |
| |||
0 commit comments