Re: [PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-06 Thread Boris Brezillon
On Mon, 5 Nov 2018 08:58:35 +0100 Boris Brezillon wrote: > 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

Re: [PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-06 Thread Boris Brezillon
On Mon, 5 Nov 2018 08:58:35 +0100 Boris Brezillon wrote: > 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

Re: [PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-05 Thread Boris Brezillon
On Mon, 5 Nov 2018 08:58:35 +0100 Boris Brezillon wrote: > 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

Re: [PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-05 Thread Boris Brezillon
On Mon, 5 Nov 2018 08:58:35 +0100 Boris Brezillon wrote: > 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

[PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-04 Thread Boris Brezillon
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

[PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-04 Thread Boris Brezillon
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