From patchwork Sat Dec 9 00:33:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 176083 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5803790vqy; Fri, 8 Dec 2023 16:33:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2ll8jk/UoJZ1ZlKp0WSUf0It8t9h+b1NnpvMcTn8DbNNGk0Ab1p6AXt1Y0DauEe8A8bZs X-Received: by 2002:a05:6e02:12e1:b0:35d:86c1:1061 with SMTP id l1-20020a056e0212e100b0035d86c11061mr1215518iln.18.1702082005278; Fri, 08 Dec 2023 16:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702082005; cv=none; d=google.com; s=arc-20160816; b=XIHqXA+fjTYd7axvI67QFygfn5MlYEztEg2ReMFEUgwWoc3avU0Sq3ZezCjp1Vn7YL Tlqm7VUpB2L2373iLfJKwFsJP6w3cYc1kRZUit8nSGcLdidnT0k2RWf8NxhIl55GSRwD 4iSSa/2iW+M6lJp/8ZIAK+kjdyFOOEqFFneIN6rFnVVK50ZrjSMZ8JjJHjERfSuwhLX+ KXzPb+MqxLI0rBo/7fjdHWovL9EKoQMUBjvUNp+29oG2RIgaW6q3WZHYiBSw7pHx2s/i 2pACXf1n2XoPcADJ8nqOVwL34DWn36mFcoey9RfnnHmMZ0asQ1USQszllwVYFIonTV5c LuYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V5ySy5SCLbnxuG0yMPuNum1/0sYcQukEZLTBPF4/Zzg=; fh=YUghR4jXWKuPUejdHveqb0dbAjjUpGEmdLs9JSp6FRI=; b=J9isfuUdOIq5smVUMJE8ofrRQNJ7OjsQ/rO3gA8TslC0LQ+vlezCz04FkfWjDt+Jdz 2YYsm+v+6qMaKkA/Z+zDsqYU8P/K5pEV1cGjQeejERWa7YAKIMKZKwG4AleArBBBfXYi 22uni+KF1aL2BJrg9HjxA3Yc/DxGzoA6FxXLWOtCj99WqxLcCcMniwnw3xIeX9wubHQ3 5HhfowLhSH1mBXIIBvbnGB5BBsToJfKgBGv6ewTixCh9QO9sCUCkNJi0i6IqF8gI9QAl b/UoSl2wQiul8MTomVefJxBEoPHGXSm7HbwMPblnvkCVxx35Q57YyN6ljTDSlOMwQ8Fi yWtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ju7f7Aci; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u10-20020a170902e80a00b001d05814624esi2333952plg.385.2023.12.08.16.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 16:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ju7f7Aci; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E59F081121C2; Fri, 8 Dec 2023 16:33:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574937AbjLIAdO (ORCPT + 99 others); Fri, 8 Dec 2023 19:33:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574922AbjLIAdI (ORCPT ); Fri, 8 Dec 2023 19:33:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92B8198C for ; Fri, 8 Dec 2023 16:33:14 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E281C433CD; Sat, 9 Dec 2023 00:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702081994; bh=hLzXwVlYaX+nlr9QjyXGaz5pV+iFYoy2akFIFCgX1os=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ju7f7AciehcmGuxN1lC/X9I4U3mUoZfkl3dxGULZgZN8xX61Z8M+EC2hnMYkhP/Qp vxGAAjBU8FmV9hML3yZxK5UHl20bwkKDZp8inhZ8IhFh4oGZJtoVK9lrg7H+/pa5Fv BDwqby38/aYJ8lNAIlOG8ICqLfHaFclU8ghMeKVmf3WZZU/ChRPzaMjEuGUMgXzFpe WJzZxPk5NEpZrpVEqtXgAG7k+4FIleMozsZaKdRvb7CWYlxUbPKPzal1BTILpXVT3K p4PvJrTZH/zGLpZbc6JJzNPjqNEXlEesy+QfJ+N07AGcA7MSPDw5Gz9treubO9yIgE CytrUa7igohFw== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Pavel.Kozlov@synopsys.com, Vineet Gupta , kernel test robot Subject: [PATCH 4/5] ARC: fix spare error Date: Fri, 8 Dec 2023 16:33:06 -0800 Message-Id: <20231209003307.480051-5-vgupta@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231209003307.480051-1-vgupta@kernel.org> References: <20231209003307.480051-1-vgupta@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 16:33:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784762340762015795 X-GMAIL-MSGID: 1784762340762015795 Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312082320.VDN5A9hb-lkp@intel.com/ Signed-off-by: Vineet Gupta --- 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 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