On Mon, May 11, 2020 at 9:32 PM Jiping Ma <[email protected]> wrote:
>
>
>
> On 05/11/2020 08:55 PM, Bruce Ashfield wrote:
> > 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 ?
> My fix 769a8c0b32  introduced the issue.
> <https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-dev/commit/?h=769a8c0b323dad18ce10465cf87995a5e038080e>
>
> Jiping
> <https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-dev/commit/?h=769a8c0b323dad18ce10465cf87995a5e038080e>
>

Aha. Thanks, I'll track down where I merged that, and merge this to
the same releases.

Bruce

> >
> > Bruce
> >
> > On Sat, May 9, 2020 at 1:50 AM Jiping Ma <[email protected]> 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 <[email protected]>
> >> ---
> >>   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 (#8666): 
https://lists.yoctoproject.org/g/linux-yocto/message/8666
Mute This Topic: https://lists.yoctoproject.org/mt/74134706/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to