Re: [PATCH v2][next] fsnotify: Avoid -Wflex-array-member-not-at-end warning

2024-03-26 Thread Jan Kara
On Mon 25-03-24 19:36:02, Gustavo A. R. Silva wrote: > Use the `DEFINE_FLEX()` helper for an on-stack definition of a > flexible structure where the size of the flexible-array member > is known at compile-time, and refactor the rest of the code, > accordingly. > > So, with these changes, fix the f

[PATCH v2][next] fsnotify: Avoid -Wflex-array-member-not-at-end warning

2024-03-25 Thread Gustavo A. R. Silva
Use the `DEFINE_FLEX()` helper for an on-stack definition of a flexible structure where the size of the flexible-array member is known at compile-time, and refactor the rest of the code, accordingly. So, with these changes, fix the following warning: fs/notify/fdinfo.c:45:36: warning: structure co