Re: [PATCH v3][next] scsi: lpfc: Use struct_size() helper

Martin K. Petersen
2023-06-15T02:16:40Z

On Wed, 31 May 2023 15:33:19 -0700, Justin Tee wrote:

> Prefer struct_size() over open-coded versions of idiom:
>
> sizeof(struct-with-flex-array) + sizeof(typeof-flex-array-elements) * count
>
> where count is the max number of items the flexible array is supposed to
> contain.
>
> [...]

Applied to 6.5/scsi-queue, thanks!

[1/1] scsi: lpfc: Use struct_size() helper
https://git.kernel.org/mkp/scsi/c/bb26224ed47c

--
Martin K. Petersen Oracle Linux Engineering