Re: [PATCH v2 1/1] scsi: qla2xxx: replace non-standard flexible array purex_item.iocb

Chris Leech
2025-07-30T00:05:10Z

On Mon, Jul 28, 2025 at 08:20:12PM -0600, Gustavo A. R. Silva wrote:
>
> I just noticed that the new TRAILING_OVERLAP() helper just landed in
> Linus' tree, and this issue seems to be a perfect candidate for it.
>
> The (untested) patch below avoids the use of `struct_group_tagged()`
> and the casts to `struct purex_item *`:

(I was largely basing my use of struct_group on your blog post from a
few month back, but now there's another new macro!)

Yes, that looks like it would work as long as the driver maintainer
doesn't object to moving that field around in scsi_qla_host.

I'm getting ready to be away from the computer for a week, so I have to
leave this for now. Maybe Nilesh has an opinion?

- Chris