summaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-11-05 08:58:35 +0100
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-11-06 10:38:17 +0100
commitba26cd7d58dcc50e25c8f02b5376c05046b181dc (patch)
tree4331ccc5c4a6ad053376871404fd7d7e527e4f56 /scripts/kconfig
parent90c31cb9a8115a1183daed9a714eea4be0687931 (diff)
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>
Diffstat (limited to 'scripts/kconfig')
0 files changed, 0 insertions, 0 deletions