diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-04 02:26:20 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-05 00:13:45 +0300 |
commit | c60d3b79423aab402085c30b33bfff5354a61d8b (patch) | |
tree | de72c302ae424ec617c5221306b637badd2656d2 /include/net/ife.h | |
parent | 3fe5dbfef47e992b810cbe82af1df02d8255fb8c (diff) | |
download | linux-c60d3b79423aab402085c30b33bfff5354a61d8b.tar.xz |
build_bug.h: remove negative-array fallback for BUILD_BUG_ON()
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.
Link: http://lkml.kernel.org/r/1542856462-18836-2-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/net/ife.h')
0 files changed, 0 insertions, 0 deletions