Commit d4e60453 authored by Cesar Eduardo Barros's avatar Cesar Eduardo Barros Committed by Linus Torvalds

Restore gcc check in mips asm/unroll.h

While raising the gcc version requirement to 4.9, the compile-time check
in the unroll macro was accidentally changed from being used on gcc and
clang to being used on clang only.

Restore the gcc check, changing it from "gcc >= 4.7" to "all gcc".

[ We should probably remove this all entirely: if we remove the check
  for CLANG, then the check for GCC can go away. Older versions of clang
  are not really appropriate or supported for kernel builds - Linus ]

Fixes: 6ec4476a ("Raise gcc version requirement to 4.9")
Signed-off-by: default avatarCesar Eduardo Barros <cesarb@cesarb.eti.br>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 355a3587
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
* 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_CLANG_VERSION >= 80000) && \ BUILD_BUG_ON((CONFIG_CC_IS_GCC || \
CONFIG_CLANG_VERSION >= 80000) && \
!__builtin_constant_p(times)); \ !__builtin_constant_p(times)); \
\ \
switch (times) { \ switch (times) { \
......
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