Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: d4e60453266b ("Restore gcc check in mips asm/unroll.h")
Link: https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/359642821
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Nathan Chancellor and committed by
Linus Torvalds
9321f1aa aa0c9086

+1 -3
+1 -3
arch/mips/include/asm/unroll.h
··· 25 25 * generate reasonable code for the switch statement, \ 26 26 * so we skip the sanity check for those compilers. \ 27 27 */ \ 28 - BUILD_BUG_ON((CONFIG_CC_IS_GCC || \ 29 - CONFIG_CLANG_VERSION >= 80000) && \ 30 - !__builtin_constant_p(times)); \ 28 + BUILD_BUG_ON(!__builtin_constant_p(times)); \ 31 29 \ 32 30 switch (times) { \ 33 31 case 32: fn(__VA_ARGS__); /* fall through */ \