From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EF2FC3DA6E for ; Tue, 26 Dec 2023 00:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gkG5zyC2lj9AGuqJ+imZiQH5Y2AD0s08kRbelmmQSpw=; b=FOVHUMvtheph8s t1bO2MgMV2EOPVLfAREE3uR8walS+kqowQcjm9BXzaLAB7OHEKeAftKYK44vbmVZ+rsyUIQ4SCunR oKDFJpL6XIvcCofStX3TCdT7D1iNPQHmwdVFxLqA0d404tVjYsdHWhix0TUDB/aN55pZw9lb6UtSo KKFo7edbRs18jRfocn/rjUYXZTihdB0zN+hIaU+2kOVZfmeqKZyD8qFIf5LeQJnkLlk/5H6X6Q+jn bp5NcnGHn4wXbQ9Rwa2JNgASUSXiLuuElAn79Flp8g/MhAYLZWcw+mh34A03aH8uc4qXCDV5I/P1a KfFHARmLdSw5132sPJpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rHvE9-00BQdB-1S; Tue, 26 Dec 2023 00:23:21 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rHvE6-00BQbm-1d for linux-snps-arc@lists.infradead.org; Tue, 26 Dec 2023 00:23:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 99BFDB80B8F; Tue, 26 Dec 2023 00:23:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B36C433C7; Tue, 26 Dec 2023 00:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703550196; bh=Mrbndk7iYMRHY0/AHVN8B+rxhi5waiZBGnE/fCQV30s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T9/M3KPr0JBpZgZbi0cVjv8AwNttckh/yzryxGLIYtcnezVRm48xq5XyKAo0vqYMS 0ytXbTuiO4B/Q8fiwExtuRuTfUrrGsSTutNORhTF4EzHhaMWkcr7LuDKDZ2pQm0IUR fd2mrewKBg9/2D8W8vH/c9wth1Xo3b/gh1jGqaBbAgS9knaQrSXty76JF0I5hgTFR0 E+bnL/G29WsnWnkhSB26BP9MTy+yIBfTvDPMojw0vpSZlNXhj2Xvs5DhVDIHnjqbyZ rEtk3qGcq6W8xtTbzVcKnzgCW74w6x4K+iAZxaoAkMGEcZJlFHCqM1p7zsgJIAmh6C h0KPLds1popKw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vineet Gupta , kernel test robot , Sasha Levin , arnd@arndb.de, linux-snps-arc@lists.infradead.org Subject: [PATCH AUTOSEL 6.1 07/24] ARC: fix spare error Date: Mon, 25 Dec 2023 19:22:00 -0500 Message-ID: <20231226002255.5730-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231226002255.5730-1-sashal@kernel.org> References: <20231226002255.5730-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.69 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231225_162318_754393_85E54A96 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org From: Vineet Gupta [ Upstream commit aca02d933f63ba8bc84258bf35f9ffaf6b664336 ] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312082320.VDN5A9hb-lkp@intel.com/ Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/kernel/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c index 3c1590c27fae3..723abcb10c801 100644 --- a/arch/arc/kernel/signal.c +++ b/arch/arc/kernel/signal.c @@ -61,7 +61,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 @@ -74,12 +74,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 -- 2.43.0 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc