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

Bart Van Assche
2025-05-03T19:08:35Z

On 5/1/25 11:50 PM, Christoph Hellwig wrote:
> (I still wish we'd kill the stupid struct and this test and just used
> the simpler and cleaner bitshifting and masking)

Bit-shifting and masking results in faster code. For slow path code I
prefer bitfields because this results in much more compact source code.

Bart.