scsi: mpt3sas: Convert to flexible arrays
authorKees Cook <keescook@chromium.org>
Tue, 1 Feb 2022 22:39:48 +0000 (14:39 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:16:34 +0000 (23:16 -0500)
commitd20b3dae630f6718a72f7ab68c3b8c8e897bf09f
tree8e39975450cbefae973f16989ef10ca9328b6526
parent23fe075519c6884d28d8c8fe096c1a6729eb16ae
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.

Link: https://lore.kernel.org/r/20220201223948.1455637-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpi/mpi2_ioc.h