On Thu, Nov 22, 2018 at 5:15 PM Masahiro Yamada <yamada.masah...@socionext.com> wrote: > > The kernel can only be compiled with an optimization option (-O2, -Os, > or the currently proposed -Og). Hence, __OPTIMIZE__ is always defined > in the kernel source. > > The fallback for the -O0 case is just hypothetical and pointless. > Moreover, commit 0bb95f80a38f ("Makefile: Globally enable VLA warning") > enabled -Wvla warning. The use of variable length arrays is banned. > > Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> > Acked-by: Kees Cook <keesc...@chromium.org> > Reviewed-by: Nick Desaulniers <ndesaulni...@google.com> > Tested-by: Nick Desaulniers <ndesaulni...@google.com>
Didn't see v3/v4 (wasn't CC): Acked-by: Miguel Ojeda <miguel.ojeda.sando...@gmail.com> Cheers, Miguel