diff options
| author | Masahiro Yamada <[email protected]> | 2019-01-03 15:26:20 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-01-04 13:13:45 -0800 |
| commit | c60d3b79423aab402085c30b33bfff5354a61d8b (patch) | |
| tree | de72c302ae424ec617c5221306b637badd2656d2 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 3fe5dbfef47e992b810cbe82af1df02d8255fb8c (diff) | |
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/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Kees Cook <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Tested-by: Nick Desaulniers <[email protected]>
Cc: Luc Van Oostenryck <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions