]> git.baikalelectronics.ru Git - kernel.git/commit
compiler.h: drop fallback overflow checkers
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 10 Sep 2021 23:40:39 +0000 (16:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Sep 2021 17:18:28 +0000 (10:18 -0700)
commit2c3a74c60072dc703dcc890adf9d6fe613a9ca23
tree6549bca068e68ab17685fc640aa249af76d48f0e
parente582da50536ddbb4dcfacc7f51ade6f8ebf659d2
compiler.h: drop fallback overflow checkers

Once upgrading the minimum supported version of GCC to 5.1, we can drop
the fallback code for !COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW.

This is effectively a revert of commit fe18122dc389 ("compiler.h: enable
builtin overflow checkers and add fallback code")

Link: https://github.com/ClangBuiltLinux/linux/issues/1438#issuecomment-916745801
Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler-clang.h
include/linux/compiler-gcc.h
include/linux/overflow.h
tools/include/linux/compiler-gcc.h
tools/include/linux/overflow.h