]> git.baikalelectronics.ru Git - kernel.git/commit
mips: Remove compiler check in unroll macro
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 10 Jul 2020 22:34:41 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Jul 2020 22:42:06 +0000 (15:42 -0700)
commit389d3c583640b82b818f1c14d60d9d3cbb94abc4
treeaa8e48755b2bb6f7a48b0f5360e39b35e81dd4e1
parenta9aa16db30e1ae0c2aa877b68de5758f22543f01
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: ee7d6ec31b14 ("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>
arch/mips/include/asm/unroll.h