diff options
author | Boris Brezillon <[email protected]> | 2018-11-05 08:58:35 +0100 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2018-11-06 10:38:17 +0100 |
commit | ba26cd7d58dcc50e25c8f02b5376c05046b181dc (patch) | |
tree | 4331ccc5c4a6ad053376871404fd7d7e527e4f56 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 90c31cb9a8115a1183daed9a714eea4be0687931 (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 <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Olof Johansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions