[PATCH 0/4] scsi: mpi3mr: Replace 1-element arrays with flexible arrays

Kees Cook posted 4 patches 1 year, 5 months ago
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 10 ++--------
drivers/scsi/mpi3mr/mpi/mpi30_ioc.h  | 10 ++--------
2 files changed, 4 insertions(+), 16 deletions(-)
[PATCH 0/4] scsi: mpi3mr: Replace 1-element arrays with flexible arrays
Posted by Kees Cook 1 year, 5 months ago
Hi,

Replace all the uses of deprecated 1-element "fake" flexible arrays
with modern C99 flexible arrays.

Thanks!

-Kees

Kees Cook (4):
  scsi: mpi3mr: struct mpi3_event_data_sas_topology_change_list: Replace
    1-element array with flexible array
  scsi: mpi3mr: struct mpi3_event_data_pcie_topology_change_list:
    Replace 1-element array with flexible array
  scsi: mpi3mr: struct mpi3_sas_io_unit_page0: Replace 1-element array
    with flexible array
  scsi: mpi3mr: struct mpi3_sas_io_unit_page1: Replace 1-element array
    with flexible array

 drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 10 ++--------
 drivers/scsi/mpi3mr/mpi/mpi30_ioc.h  | 10 ++--------
 2 files changed, 4 insertions(+), 16 deletions(-)

-- 
2.34.1
Re: [PATCH 0/4] scsi: mpi3mr: Replace 1-element arrays with flexible arrays
Posted by Martin K. Petersen 1 year, 4 months ago
On Thu, 11 Jul 2024 08:56:32 -0700, Kees Cook wrote:

> Replace all the uses of deprecated 1-element "fake" flexible arrays
> with modern C99 flexible arrays.
> 
> Thanks!
> 
> -Kees
> 
> [...]

Applied to 6.12/scsi-queue, thanks!

[1/4] scsi: mpi3mr: struct mpi3_event_data_sas_topology_change_list: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/ac5b7505de70
[2/4] scsi: mpi3mr: struct mpi3_event_data_pcie_topology_change_list: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/0e11f97bfddc
[3/4] scsi: mpi3mr: struct mpi3_sas_io_unit_page0: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/41bb96296f9d
[4/4] scsi: mpi3mr: struct mpi3_sas_io_unit_page1: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/a62193abae75

-- 
Martin K. Petersen	Oracle Linux Engineering
Re: [PATCH 0/4] scsi: mpi3mr: Replace 1-element arrays with flexible arrays
Posted by Martin K. Petersen 1 year, 4 months ago
Kees,

> Replace all the uses of deprecated 1-element "fake" flexible arrays
> with modern C99 flexible arrays.

Applied to 6.12/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering