Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1716554ybg; Sat, 19 Oct 2019 00:59:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyH2A6fiRBFGx7uPK6quho75MVr+KGnq0FwMIREmzYhkWPFycNwiMcojzYrudgAoWIs3Q2t X-Received: by 2002:a17:906:7202:: with SMTP id m2mr12197097ejk.138.1571471964855; Sat, 19 Oct 2019 00:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571471964; cv=none; d=google.com; s=arc-20160816; b=0QBHLZhUi9wuyx86XYX0lRAra0UD8YPvAKuEj4gZhsvVt71TnafNwy4/6JA0NNR1/e 3DwJMfqKtUCVot/lApnvo2OglyPQmJvavdUjvyF5O3lLl9vbsUFVLqNrp3nviDYFx6rt 9tmoUo8KqFBkc3QzMeBHPxkf5Ii1f4CPy7BpdPbPmjoVnm/NbDmSi4VpV0f8GTxp+Wwz mBJL7sC0L8/SFvMRQJBy3B46KFyDySIs1RjJQ7bGHp4vkfVCirHttdAcVwvhz+QnhOzp QXPuM2fMO5xD8O+9OTDFXW9PW8XSNyvZNcRpbawwpJKWeLINydZXtH/qYClyyLx+MrH3 es0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BDNARAWoiAFizEyliYmITz0WDECsamFFfEfTjTwse14=; b=eX1DrQgPD4fHBKh44vmda3bVkZkD6gXtzcFjWnVXmBsqu9S8pikP49bwTlqcBCLqbk dqhKnevRZ+ob5BgELW/MdDDZWvqwo2sU43jYIQ5Ui+/m6o4MNphSCyUHQifEmeiXTH+l kyhqDLMqw2nM4NZ3PfyxFBOxxF0U+cAZ1u3J1Y4sJUJUfx7Du3i9XETSkel6kJorFWWH zOO/6k76BGYfxmmjIva1UcY1GcsyPwobzUKiNRyDh7X0VTSOvIHrNXk72z228AKkGya+ p4uJRFsNb8Ut9vCFkJiS9JD2IXsuu/GND3GL8c3BpeWBkOPc/ii2xK8U/VzWVxe6vib4 EoXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=BH2SZAJI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si5235280edq.221.2019.10.19.00.59.01; Sat, 19 Oct 2019 00:59:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=BH2SZAJI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505029AbfJRIJF (ORCPT + 99 others); Fri, 18 Oct 2019 04:09:05 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:42484 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505006AbfJRIJA (ORCPT ); Fri, 18 Oct 2019 04:09:00 -0400 Received: by mail-io1-f65.google.com with SMTP id r15so2675588iod.9 for ; Fri, 18 Oct 2019 01:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BDNARAWoiAFizEyliYmITz0WDECsamFFfEfTjTwse14=; b=BH2SZAJI7pzAjQaIWJl0yJG8OFbAURLSsSN2T7bCaujThYLoFQwOn6z4+Yy2Nr2i+7 VeOFWtmiAtkfd1NjwrjrebM0WUBRv8nJcBFQxeh82F+KKEUrePTE8zrGHu7G7QQ+nCiB Qcb/YSUdh+FN2Z/WjhYa/giocNRxKLilLM3aGMBc16ZftLviykl0epsG5X3Pai//FG4P 68XGtwnDzgtJ1EdabbhJ81T05HwEeiiQJh33FBXeMxf6lj9j9sFxkz1t085zaU8WVa2n hvGfdEvhyCGvBxu4rYLb/g6wl5sOfaxorW7fhDuZPD19m3IimT3JiPejWTbVdryCqfiS bv4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BDNARAWoiAFizEyliYmITz0WDECsamFFfEfTjTwse14=; b=lcVRY2idKQ5Was45Vb8QQYj9TraZVDplzhLMjIYFk/LYLfyszUxSi9GaBat3BgyVut chowy0xtB/MSoRIHfEpvdfXUi65LbKoq66noNj0+qx6yjLfpQ5sUYfWIfg9H3fOUXaxD BZs2D5+D790AB5JPeG7C1fOQzjenUoeZgBvAGLgSnKvaIB/O0zMCaCMq8RpeV1ORDdfx RNPUapj7JwET25NevUN0md+PCJmo0uJAH9THJh5rpOFIAW3jQLvUNPIKba5/Ezz+uFzp oobYskcBgFxq/y2n2JBrWCTeCO1FTpZJxKc/D7GvDsjqZp6w3I8GPR61pIeYDl67i7WI YWrg== X-Gm-Message-State: APjAAAXcqjBdigklMOi6shE1W6y5hAdnAzSVHOl2qJOAw+gBGXOnjzH2 aatMqsr8TEYVaigtP7+Egi8XojVM6u0= X-Received: by 2002:a02:6508:: with SMTP id u8mr7939505jab.28.1571386139226; Fri, 18 Oct 2019 01:08:59 -0700 (PDT) Received: from viisi.Home ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z86sm2121026ilf.73.2019.10.18.01.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 01:08:58 -0700 (PDT) From: Paul Walmsley To: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Alan Kao Subject: [PATCH v3 7/8] riscv: fp: add missing __user pointer annotations Date: Fri, 18 Oct 2019 01:08:40 -0700 Message-Id: <20191018080841.26712-8-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018080841.26712-1-paul.walmsley@sifive.com> References: <20191018080841.26712-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The __user annotations were removed from the {save,restore}_fp_state() function signatures by commit 007f5c358957 ("Refactor FPU code in signal setup/return procedures"), but should be present, and sparse warns when they are not applied. Add them back in. This change should have no functional impact. Signed-off-by: Paul Walmsley Fixes: 007f5c358957 ("Refactor FPU code in signal setup/return procedures") Cc: Alan Kao --- arch/riscv/kernel/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index 85c700ad47e9..9437167f463e 100644 --- a/arch/riscv/kernel/signal.c +++ b/arch/riscv/kernel/signal.c @@ -28,7 +28,7 @@ struct rt_sigframe { #ifdef CONFIG_FPU static long restore_fp_state(struct pt_regs *regs, - union __riscv_fp_state *sc_fpregs) + union __riscv_fp_state __user *sc_fpregs) { long err; struct __riscv_d_ext_state __user *state = &sc_fpregs->d; @@ -55,7 +55,7 @@ static long restore_fp_state(struct pt_regs *regs, } static long save_fp_state(struct pt_regs *regs, - union __riscv_fp_state *sc_fpregs) + union __riscv_fp_state __user *sc_fpregs) { long err; struct __riscv_d_ext_state __user *state = &sc_fpregs->d; -- 2.23.0