File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ struct rt_sigframe {
6262 unsigned int sigret_magic ;
6363};
6464
65- static int save_arcv2_regs (struct sigcontext * mctx , struct pt_regs * regs )
65+ static int save_arcv2_regs (struct sigcontext __user * mctx , struct pt_regs * regs )
6666{
6767 int err = 0 ;
6868#ifndef CONFIG_ISA_ARCOMPACT
@@ -75,12 +75,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
7575#else
7676 v2abi .r58 = v2abi .r59 = 0 ;
7777#endif
78- err = __copy_to_user (& mctx -> v2abi , & v2abi , sizeof (v2abi ));
78+ err = __copy_to_user (& mctx -> v2abi , ( void const * ) & v2abi , sizeof (v2abi ));
7979#endif
8080 return err ;
8181}
8282
83- static int restore_arcv2_regs (struct sigcontext * mctx , struct pt_regs * regs )
83+ static int restore_arcv2_regs (struct sigcontext __user * mctx , struct pt_regs * regs )
8484{
8585 int err = 0 ;
8686#ifndef CONFIG_ISA_ARCOMPACT
You can’t perform that action at this time.
0 commit comments