mbox series

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

Message ID 20240711172432.work.523-kees@kernel.org (mailing list archive)
Headers show
Series scsi: message: fusion: Replace 1-element arrays with flexible arrays | expand

Message

Kees Cook July 11, 2024, 5:28 p.m. UTC
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(-)

Comments

Martin K. Petersen Aug. 3, 2024, 1:33 a.m. UTC | #1
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 Aug. 5, 2024, 9:17 p.m. UTC | #2
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