linux/drivers/mtd/maps
Boris Brezillon ba26cd7d58 mtd: sa1100: avoid VLA in sa1100_setup_mtd
Enabling -Wvla found another variable-length array with randconfig
testing:

drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_setup_mtd':
drivers/mtd/maps/sa1100-flash.c:224:10: error: ISO C90 forbids variable length array 'cdev' [-Werror=vla]

Dynamically allocate the cdev array passed to mtd_concat_create()
instead of using a VLA.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Olof Johansson <olof@lixom.net>
2018-11-06 10:38:17 +01:00
..
amd76xrom.c
cfi_flagadm.c
ck804xrom.c
dc21285.c
esb2rom.c
gpio-addr-flash.c mtd: maps: gpio-addr-flash: Convert to gpiod 2018-10-08 21:32:58 +02:00
ichxrom.c
impa7.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
intel_vr_nor.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
ixp4xx.c
Kconfig mtd: Make Kconfig formatting consistent 2018-07-19 23:12:06 +02:00
l440gx.c
lantiq-flash.c
latch-addr-flash.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
Makefile mtd: maps: remove bfin-async-flash driver 2018-03-21 09:50:57 +01:00
map_funcs.c
netsc520.c
nettel.c
pci.c
pcmciamtd.c
physmap_of_core.c mtd: physmap_of: Release resources on error 2018-10-05 10:19:33 +02:00
physmap_of_gemini.c mtd: physmap_of: Remove unused struct of_device_id 2018-10-04 13:44:26 +02:00
physmap_of_gemini.h
physmap_of_versatile.c
physmap_of_versatile.h
physmap.c
pismo.c mtd: maps: pismo: Remove owner assignment from i2c_driver 2018-05-03 11:42:31 +02:00
plat-ram.c
pmcmsp-flash.c
pxa2xx-flash.c
rbtx4939-flash.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
sa1100-flash.c mtd: sa1100: avoid VLA in sa1100_setup_mtd 2018-11-06 10:38:17 +01:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c mtd/maps: fix solutionengine.c printk format warnings 2018-07-24 22:43:10 +02:00
sun_uflash.c
ts5500_flash.c
tsunami_flash.c
uclinux.c
vmu-flash.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00