File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ struct rt_sigframe {
62
62
unsigned int sigret_magic ;
63
63
};
64
64
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 )
66
66
{
67
67
int err = 0 ;
68
68
#ifndef CONFIG_ISA_ARCOMPACT
@@ -75,12 +75,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
75
75
#else
76
76
v2abi .r58 = v2abi .r59 = 0 ;
77
77
#endif
78
- err = __copy_to_user (& mctx -> v2abi , & v2abi , sizeof (v2abi ));
78
+ err = __copy_to_user (& mctx -> v2abi , ( void const * ) & v2abi , sizeof (v2abi ));
79
79
#endif
80
80
return err ;
81
81
}
82
82
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 )
84
84
{
85
85
int err = 0 ;
86
86
#ifndef CONFIG_ISA_ARCOMPACT
You can’t perform that action at this time.
0 commit comments