Re: [PATCH 3/8][next] xfs: Avoid -Wflex-array-member-not-at-end warnings

2025-02-24 Thread Dave Chinner
On Mon, Feb 24, 2025 at 08:27:44PM +1030, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Change the type of the middle struct members currently causing trouble > from `struct bio` to `struct bio_hdr`. Wh

Re: [PATCH 3/8][next] xfs: Avoid -Wflex-array-member-not-at-end warnings

2025-02-24 Thread Darrick J. Wong
On Mon, Feb 24, 2025 at 08:27:44PM +1030, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Change the type of the middle struct members currently causing trouble > from `struct bio` to `struct bio_hdr`. >

[PATCH 3/8][next] xfs: Avoid -Wflex-array-member-not-at-end warnings

2025-02-24 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Change the type of the middle struct members currently causing trouble from `struct bio` to `struct bio_hdr`. We also use `container_of()` whenever we need to retrieve a pointer to the flexib