Re: [PATCH v2] ppc: Include asm/ptrace.h for pt_regs struct definition

2022-03-14 Thread Richard Henderson
On 3/14/22 10:25, Khem Raj wrote: Fixes ../qemu-6.2.0/linux-user/host/ppc64/../ppc/host-signal.h:16:32: error: incomplete definition of type 'struct pt_regs' return uc->uc_mcontext.regs->nip; ^ Signed-off-by: Khem Raj Cc: Peter Maydell Cc: Philippe

Re: [PATCH v2] ppc: Include asm/ptrace.h for pt_regs struct definition

2022-03-14 Thread Daniel P . Berrangé
On Mon, Mar 14, 2022 at 06:06:40PM +, Peter Maydell wrote: > On Mon, 14 Mar 2022 at 17:59, Daniel Henrique Barboza > wrote: > > I am intrigued about why we didn't hit this before, especially considering > > that ppc64 header is just a > > pointer to this file. > > It's specific to musl,

Re: [PATCH v2] ppc: Include asm/ptrace.h for pt_regs struct definition

2022-03-14 Thread Peter Maydell
On Mon, 14 Mar 2022 at 17:59, Daniel Henrique Barboza wrote: > I am intrigued about why we didn't hit this before, especially considering > that ppc64 header is just a > pointer to this file. It's specific to musl, which does different things with its system includes than glibc does. -- PMM

Re: [PATCH v2] ppc: Include asm/ptrace.h for pt_regs struct definition

2022-03-14 Thread Daniel Henrique Barboza
On 3/14/22 14:25, Khem Raj wrote: Fixes ../qemu-6.2.0/linux-user/host/ppc64/../ppc/host-signal.h:16:32: error: incomplete definition of type 'struct pt_regs' return uc->uc_mcontext.regs->nip; ^ Signed-off-by: Khem Raj Cc: Peter Maydell Cc: Philippe

[PATCH v2] ppc: Include asm/ptrace.h for pt_regs struct definition

2022-03-14 Thread Khem Raj
Fixes ../qemu-6.2.0/linux-user/host/ppc64/../ppc/host-signal.h:16:32: error: incomplete definition of type 'struct pt_regs' return uc->uc_mcontext.regs->nip; ^ Signed-off-by: Khem Raj Cc: Peter Maydell Cc: Philippe Mathieu-Daudé Cc: Richard Henderson ---