Re: [PATCH][next] scsi: mpt3sas: Replace unnecessary dynamic allocation with a static one

From: Martin K. Petersen
Date: Thu Mar 18 2021 - 23:47:50 EST


On Wed, 10 Mar 2021 17:59:51 -0600, Gustavo A. R. Silva wrote:

> Dynamic memory allocation isn't actually needed and it can be
> replaced by statically allocating memory for struct object
> io_unit_pg3 with 36 hardcoded entries for its GPIOVal array.
>
> Also, this helps the with ongoing efforts to enable -Warray-bounds
> by fixing the following warning:
>
> [...]

Applied to 5.13/scsi-queue, thanks!

[1/1] scsi: mpt3sas: Replace unnecessary dynamic allocation with a static one
https://git.kernel.org/mkp/scsi/c/a1c4d7741323

--
Martin K. Petersen Oracle Linux Engineering