diff options
author | Stephen Kitt <steve@sk2.org> | 2018-03-10 01:32:11 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-03-13 05:37:20 +0300 |
commit | 92eb506262a2a3da9aeaece7017e77490da907dd (patch) | |
tree | 1896ed10ae1166a3a01fe52ead7fd5a21540b872 /drivers/scsi/lpfc/lpfc_nvmet.c | |
parent | e32ec6579f5b3134cb27cc063c17da0bb8cd29c7 (diff) | |
download | linux-92eb506262a2a3da9aeaece7017e77490da907dd.tar.xz |
scsi: device_handler: remove VLAs
In preparation to enabling -Wvla, remove VLAs and replace them with
fixed-length arrays instead.
scsi_dh_{alua,emc,rdac} use variable-length array declarations to store
command blocks, with the appropriate size as determined by
COMMAND_SIZE. This patch replaces these with fixed-sized arrays using
MAX_COMMAND_SIZE, so that the array size can be determined at compile
time.
This was prompted by https://lkml.org/lkml/2018/3/7/621
Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nvmet.c')
0 files changed, 0 insertions, 0 deletions