From c2518a8efb6507f1b41c3b12e03b06f8f2317a1f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 19 Oct 2019 15:53:43 -0400 Subject: use struct pt_regs * rather than void * for powerpc[64] sigcontext regs this is to match the kernel and glibc interfaces. here, struct pt_regs is an incomplete type, but that's harmless, and if it's completed by inclusion of another header then members of the struct pointed to by the regs member can be accessed directly without going through a cast or intermediate pointer object. --- arch/powerpc/bits/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/powerpc') diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h index 06efb11c..c1bf3caf 100644 --- a/arch/powerpc/bits/signal.h +++ b/arch/powerpc/bits/signal.h @@ -28,7 +28,7 @@ struct sigcontext { int signal; unsigned long handler; unsigned long oldmask; - void *regs; + struct pt_regs *regs; }; typedef struct { -- cgit v1.2.1