From: Meelis Roos <mroos@linux.ee>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c
Date: Sun, 11 Sep 2016 12:12:22 +0300 (EEST) [thread overview]
Message-ID: <alpine.LRH.2.20.1609111211580.26664@math.ut.ee> (raw)
In-Reply-To: <87r38snkv2.fsf@concordia.ellerman.id.au>
> 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)
next prev parent reply other threads:[~2016-09-11 7:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 13:05 UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c Meelis Roos
2016-09-10 9:51 ` Michael Ellerman
2016-09-11 9:12 ` Meelis Roos [this message]
2016-09-10 16:12 ` Aneesh Kumar K.V
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.20.1609111211580.26664@math.ut.ee \
--to=mroos@linux.ee \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox