lkml.org 
[lkml]   [2016]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c
> Does this fix it?

Yes, thank you!

> diff --git a/arch/powerpc/include/asm/cpu_has_feature.h b/arch/powerpc/include/asm/cpu_has_feature.h
> index 2ef55f8968a2..b312b152461b 100644
> --- a/arch/powerpc/include/asm/cpu_has_feature.h
> +++ b/arch/powerpc/include/asm/cpu_has_feature.h
> @@ -15,7 +15,7 @@ static inline bool early_cpu_has_feature(unsigned long feature)
> #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECKS
> #include <linux/jump_label.h>
>
> -#define NUM_CPU_FTR_KEYS 64
> +#define NUM_CPU_FTR_KEYS BITS_PER_LONG
>
> extern struct static_key_true cpu_feature_keys[NUM_CPU_FTR_KEYS];
>
>

--
Meelis Roos (mroos@linux.ee)

\
 
 \ /
  Last update: 2016-09-17 09:59    [W:0.044 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site