mirror of https://gitee.com/openkylin/linux.git
88b13609af
In preparation to enabling -Wvla, remove VLAs and replace them with fixed-length arrays instead. The arrays fixed here, using the number of constant sections, aren't really VLAs, but they appear so to the compiler. Replace the array sizes with a pre-processor-level constant instead using ARRAY_SIZE. This was prompted by https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Stephen Kitt <steve@sk2.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
---|---|---|
.. | ||
Makefile | ||
aicasm.c | ||
aicasm.h | ||
aicasm_gram.y | ||
aicasm_insformat.h | ||
aicasm_macro_gram.y | ||
aicasm_macro_scan.l | ||
aicasm_scan.l | ||
aicasm_symbol.c | ||
aicasm_symbol.h |