linux/drivers/scsi/device_handler
Stephen Kitt 92eb506262 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>
2018-03-12 22:37:20 -04:00
..
Kconfig scsi_dh: force modular build if SCSI is a module 2016-02-23 21:27:02 -05:00
Makefile scsi_dh: integrate into the core SCSI code 2015-08-28 13:14:56 -07:00
scsi_dh_alua.c scsi: device_handler: remove VLAs 2018-03-12 22:37:20 -04:00
scsi_dh_emc.c scsi: device_handler: remove VLAs 2018-03-12 22:37:20 -04:00
scsi_dh_hp_sw.c scsi: scsi_dh: Return SCSI_DH_XX error code from ->attach() 2017-09-25 19:03:14 -04:00
scsi_dh_rdac.c scsi: device_handler: remove VLAs 2018-03-12 22:37:20 -04:00