I need a bit more info on this one:

 - which kernel versions
 - is this also an upstream problem, or one we've introduced in linux-yocto ?

Bruce

On Sat, May 9, 2020 at 1:50 AM Jiping Ma <jiping....@windriver.com> wrote:
>
> arch/arm64/kernel/perf_regs.c:37:34: warning: array subscript 32 is
> above array bounds of 'u64[31]' {aka 'long long unsigned int[31]'}
> [-Warray-bounds]
>    37 |                 return regs->regs[PERF_REG_ARM64_PC];
>       |                        ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
>
> Signed-off-by: Jiping Ma <jiping....@windriver.com>
> ---
>  arch/arm64/kernel/perf_regs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c
> index 04088e6b6092..0ef2880267c9 100644
> --- a/arch/arm64/kernel/perf_regs.c
> +++ b/arch/arm64/kernel/perf_regs.c
> @@ -34,7 +34,7 @@ u64 perf_reg_value(struct pt_regs *regs, int idx)
>
>         if (perf_reg_abi(current) == PERF_SAMPLE_REGS_ABI_32
>                 && idx == 15)
> -               return regs->regs[PERF_REG_ARM64_PC];
> +               return regs->pc;
>
>         return regs->regs[idx];
>  }
> --
> 2.18.1
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8663): 
https://lists.yoctoproject.org/g/linux-yocto/message/8663
Mute This Topic: https://lists.yoctoproject.org/mt/74134706/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to