]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: orion: avoid VLA in orion_mpp_conf
authorArnd Bergmann <arnd@arndb.de>
Fri, 5 Oct 2018 16:15:49 +0000 (18:15 +0200)
committerOlof Johansson <olof@lixom.net>
Sat, 3 Nov 2018 05:31:24 +0000 (22:31 -0700)
commit36419bef49bf400412f700dd0a9689d038a749f6
tree4cf17cbfbd4ec0b9b35c2ac4cc836a6c782fc59c
parentc1efec4759d4dea48eae8430803b97808ff1b200
ARM: orion: avoid VLA in orion_mpp_conf

Testing randconfig builds found an instance of a VLA that was
missed when determining that we have removed them all:

arch/arm/plat-orion/mpp.c: In function 'orion_mpp_conf':
arch/arm/plat-orion/mpp.c:31:2: error: ISO C90 forbids variable length array 'mpp_ctrl' [-Werror=vla]

This one is fairly straightforward: we know what all three
callers are, and the maximum length is not very long.

Fixes: 68664695ae57 ("Makefile: Globally enable VLA warning")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/plat-orion/mpp.c