diff options
Diffstat (limited to 'arch/powerpc/include/asm/cpu_has_feature.h')
-rw-r--r-- | arch/powerpc/include/asm/cpu_has_feature.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cpu_has_feature.h b/arch/powerpc/include/asm/cpu_has_feature.h index b312b152461b..6e834caa3720 100644 --- a/arch/powerpc/include/asm/cpu_has_feature.h +++ b/arch/powerpc/include/asm/cpu_has_feature.h | |||
@@ -23,7 +23,9 @@ static __always_inline bool cpu_has_feature(unsigned long feature) | |||
23 | { | 23 | { |
24 | int i; | 24 | int i; |
25 | 25 | ||
26 | #ifndef __clang__ /* clang can't cope with this */ | ||
26 | BUILD_BUG_ON(!__builtin_constant_p(feature)); | 27 | BUILD_BUG_ON(!__builtin_constant_p(feature)); |
28 | #endif | ||
27 | 29 | ||
28 | #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECK_DEBUG | 30 | #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECK_DEBUG |
29 | if (!static_key_initialized) { | 31 | if (!static_key_initialized) { |