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

2025-02-24 Thread Coly Li
On Mon, Feb 24, 2025 at 08:31:26PM +0800, 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 8/8][next] bcache: 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