scsi: mpt3sas: Convert to flexible arrays
authorKees Cook <keescook@chromium.org>
Tue, 1 Feb 2022 22:20:16 +0000 (14:20 -0800)
committerKees Cook <keescook@chromium.org>
Mon, 14 Feb 2022 00:48:24 +0000 (16:48 -0800)
commit4efa1a67d4dad57d9a54763bdcb60eedb120bc36
treeb4045aae262afe0e90b99bb1b7ec1b3440a4bf96
parent87f02d058380a193e1565e653ec295eb5d53c1c3
scsi: mpt3sas: Convert to flexible arrays

This converts to a flexible array instead of the old-style 1-element
arrays. The existing code already did the correct math for finding the
size of the resulting flexible array structure, so there is no binary
difference.

The other two structures converted to use flexible arrays appear to
have no users at all.

Cc: Sathya Prakash <sathya.prakash@broadcom.com>
Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Cc: Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: MPT-FusionLinux.pdl@broadcom.com
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/scsi/mpt3sas/mpi/mpi2_ioc.h