Skip to content

Commit aca02d9

Browse files
committed
ARC: fix spare error
Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Vineet Gupta <[email protected]>
1 parent 6732c0e commit aca02d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arc/kernel/signal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)