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

Martin K. Petersen
2023-06-08T01:04:16Z

Justin,

> 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-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering