linux/drivers/scsi/aic7xxx/aicasm
Stephen Kitt 88b13609af scsi: aic7xxx: aic79xx: remove VLAs
In preparation to enabling -Wvla, remove VLAs and replace them with
fixed-length arrays instead.

The arrays fixed here, using the number of constant sections, aren't
really VLAs, but they appear so to the compiler. Replace the array sizes
with a pre-processor-level constant instead using ARRAY_SIZE.

This was prompted by https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Stephen Kitt <steve@sk2.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-03-15 00:34:26 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
aicasm.c scsi: aic7xxx: aic79xx: remove VLAs 2018-03-15 00:34:26 -04:00
aicasm.h
aicasm_gram.y
aicasm_insformat.h [SCSI] remove deprecated IRQF_DISABLED from SCSI 2014-03-19 15:04:44 -07:00
aicasm_macro_gram.y
aicasm_macro_scan.l
aicasm_scan.l
aicasm_symbol.c
aicasm_symbol.h