Commit 9321f1aa authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Linus Torvalds

mips: Remove compiler check in unroll macro

CONFIG_CC_IS_GCC is undefined when Clang is used, which breaks the build
(see our Travis link below).

Clang 8 was chosen as a minimum version for this check because there
were some improvements around __builtin_constant_p in that release. In
reality, MIPS was not even buildable until clang 9 so that check was not
technically necessary. Just remove all compiler checks and just assume
that we have a working compiler.

Fixes: d4e60453 ("Restore gcc check in mips asm/unroll.h")
Link: https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/359642821Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent aa0c9086
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
* generate reasonable code for the switch statement, \ * generate reasonable code for the switch statement, \
* so we skip the sanity check for those compilers. \ * so we skip the sanity check for those compilers. \
*/ \ */ \
BUILD_BUG_ON((CONFIG_CC_IS_GCC || \ BUILD_BUG_ON(!__builtin_constant_p(times)); \
CONFIG_CLANG_VERSION >= 80000) && \
!__builtin_constant_p(times)); \
\ \
switch (times) { \ switch (times) { \
case 32: fn(__VA_ARGS__); /* fall through */ \ case 32: fn(__VA_ARGS__); /* fall through */ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment