summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2023-12-08 15:57:07 -0800
committerVineet Gupta <vgupta@kernel.org>2023-12-08 16:30:24 -0800
commitaca02d933f63ba8bc84258bf35f9ffaf6b664336 (patch)
tree923fff83757f70af803e40be748f14c87b75e016 /arch/arc
parent6732c0e494ac35fbadd749bbbd226c0aceb2d2c4 (diff)
downloadlinux-stable-aca02d933f63ba8bc84258bf35f9ffaf6b664336.tar.gz
linux-stable-aca02d933f63ba8bc84258bf35f9ffaf6b664336.tar.bz2
linux-stable-aca02d933f63ba8bc84258bf35f9ffaf6b664336.zip
ARC: fix spare error
Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202312082320.VDN5A9hb-lkp@intel.com/ Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c
index 0b3bb529d246..8f6f4a542964 100644
--- a/arch/arc/kernel/signal.c
+++ b/arch/arc/kernel/signal.c
@@ -62,7 +62,7 @@ struct rt_sigframe {
unsigned int sigret_magic;
};
-static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
+static int save_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs)
{
int err = 0;
#ifndef CONFIG_ISA_ARCOMPACT
@@ -75,12 +75,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
#else
v2abi.r58 = v2abi.r59 = 0;
#endif
- err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi));
+ err = __copy_to_user(&mctx->v2abi, (void const *)&v2abi, sizeof(v2abi));
#endif
return err;
}
-static int restore_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
+static int restore_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs)
{
int err = 0;
#ifndef CONFIG_ISA_ARCOMPACT