[PATCH 0/6] scsi: message: fusion: Replace 1-element arrays with flexible arrays

Kees Cook posted 6 patches 1 year, 5 months ago
drivers/message/fusion/lsi/mpi_cnfg.h | 60 +++------------------------
1 file changed, 6 insertions(+), 54 deletions(-)
[PATCH 0/6] scsi: message: fusion: Replace 1-element arrays with flexible arrays
Posted by Kees Cook 1 year, 5 months ago
Hi,

Replace all remaining uses of deprecated 1-element "fake" flexible arrays
with modern C99 flexible arrays. Add __counted_by annotations at the
same time.

Thanks!

-Kees

Kees Cook (6):
  scsi: message: fusion: struct _RAID_VOL0_SETTINGS: Replace 1-element
    array with flexible array
  scsi: message: fusion: struct _CONFIG_PAGE_SAS_IO_UNIT_0: Replace
    1-element array with flexible array
  scsi: message: fusion: struct _CONFIG_PAGE_RAID_PHYS_DISK_1: Replace
    1-element array with flexible array
  scsi: message: fusion: struct _CONFIG_PAGE_IOC_2: Replace 1-element
    array with flexible array
  scsi: message: fusion: struct _CONFIG_PAGE_IOC_3: Replace 1-element
    array with flexible array
  scsi: message: fusion: struct _CONFIG_PAGE_IOC_4: Replace 1-element
    array with flexible array

 drivers/message/fusion/lsi/mpi_cnfg.h | 60 +++------------------------
 1 file changed, 6 insertions(+), 54 deletions(-)

-- 
2.34.1
Re: [PATCH 0/6] scsi: message: fusion: Replace 1-element arrays with flexible arrays
Posted by Martin K. Petersen 1 year, 4 months ago
On Thu, 11 Jul 2024 10:28:14 -0700, Kees Cook wrote:

> Replace all remaining uses of deprecated 1-element "fake" flexible arrays
> with modern C99 flexible arrays. Add __counted_by annotations at the
> same time.
> 
> Thanks!
> 
> -Kees
> 
> [...]

Applied to 6.12/scsi-queue, thanks!

[1/6] scsi: message: fusion: struct _RAID_VOL0_SETTINGS: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/8e76c9c9dd11
[2/6] scsi: message: fusion: struct _CONFIG_PAGE_SAS_IO_UNIT_0: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/14c1f88c7f62
[3/6] scsi: message: fusion: struct _CONFIG_PAGE_RAID_PHYS_DISK_1: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/dc8932fbf6a9
[4/6] scsi: message: fusion: struct _CONFIG_PAGE_IOC_2: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/de80fe29ab53
[5/6] scsi: message: fusion: struct _CONFIG_PAGE_IOC_3: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/70631322dbab
[6/6] scsi: message: fusion: struct _CONFIG_PAGE_IOC_4: Replace 1-element array with flexible array
      https://git.kernel.org/mkp/scsi/c/f296cc1d7f5a

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

> Replace all remaining uses of deprecated 1-element "fake" flexible
> arrays with modern C99 flexible arrays. Add __counted_by annotations
> at the same time.

Applied to 6.12/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering