Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1299261ybg; Fri, 18 Oct 2019 15:27:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8w2CZXmZs6r3oMNrCvKWIvuZ/DPJRRQqaOGJ5fD9HFHQw8+5e27rdNJXBWExffrya/ByV X-Received: by 2002:a05:6402:1b8a:: with SMTP id cc10mr12478141edb.202.1571437652630; Fri, 18 Oct 2019 15:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437652; cv=none; d=google.com; s=arc-20160816; b=PihqAxPV1I1eMST8MdzMQQW60zuCWHv/nyLTb1KFxFXlHW+RGM3jhKs4q1o2Dw9rM2 gqTYh7J6IYmQPa7NLWhOT73Owkngy+7FJau5Mnh4Ezyp2fFpjZSv7BXNdxw6Qb/4WsJa Nvovfy4Wj46eiXWFEE703MsOIQZBwTmKTjcw3yKXSE40MfJ94ks9lfOexjlOBHHq5gvd voVxLvP9xfOWNEOfOBfOzV1wzaLgnXonbGZh31SBNR9CWdbOtQPEy/m+RmSKP3D7ODEx AjOpIYRaBL6QW7uUBcNvaxQn82t9xXnQct9VzQwCy+14VBLtLyD6QMP2Hydn4RcA4NWw uq7g== 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=ah/CY5S55M8B3dNXDZ0R0HsUi6pu1DyzFS/to//hZhpJZHSTZYleEuXY16utzNrM20 ER9GJJJOuGmzBlifejZ7/Dl/mXXH8UALDV9FgPD4IROJTGckZ3XcFAv7p5LooEc9Nz7I NXlUxd3s0G3xwAZUZYokhRBsdgKwK/dBVo5NrAtYXd6ZOGt2w0Ghn0Ydk6X7yiwsy71c oKtn3DxYLY/MwaHzjkLOOCKd6O4cc6sROzSkc5Xdu2bkEytDIAOSgAvg1nlPhkHH6N8p hVOSaTvkk+SwQU7wKIvGS7yyH2mdedfuhRhqvtDMfgMwL8agTNjmkKnCg1KvQZdtZqF7 5zAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ZxKJbb75; 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 ca7si4217112ejb.319.2019.10.18.15.27.09; Fri, 18 Oct 2019 15:27:32 -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=ZxKJbb75; 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 S2438998AbfJRAuN (ORCPT + 99 others); Thu, 17 Oct 2019 20:50:13 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:37573 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408907AbfJRAuA (ORCPT ); Thu, 17 Oct 2019 20:50:00 -0400 Received: by mail-il1-f196.google.com with SMTP id l12so3947150ilq.4 for ; Thu, 17 Oct 2019 17:50:00 -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=ZxKJbb75JUb8XtdmyH6ELjVl2TxKr+2knfv6zeJLtjAEUY6blYfLbV5wIOiq5g1CJf qAm4Xy0ZpmQ4dUJXLg3NJ5XiOzOGpaZFsChkS+2oZxuR0aiBeCYVk/q+rwVTGjsdktpd 3tXdvHYaEM6JwRgXysZe7f/u7TBtDC38uEEpA4QGBXtUYqCraU2/mCey9hW93unnycaY rnWIVszNZcwyXk2NQsUP3zRNqNthv4y3wgNgvavnmiFryMA2SRsFocr38S+W6naLIWn4 cmwq9gUuIcIYuKutu2aUOk7ZArHCf6J/7MC0nNg1HyYXzPatkxiSdOBS/jfm+47+SH/t QWIw== 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=kBsC6+jggykY0NP99nzEhi0jTTf8mHUYtXmA0FUkQWn1jQCU3hTQ4wP0VRL7K5OnJv Jk88o5PZsIpzOuD0Nd7ZvZe6iKode5xpz0l4AwjmfyVG2EGyCG/Ny/rmTqGj9O4d+svT csEtboUYz9uaA5fO5C85evAywDIa3nYMM8aoiEL6Ud7wUcCqR5lqNIYV3scGcpre+1+1 qDsUuYEpLXcI3K1ImCaE78gcYBTC03G5KHQCfO5SWLcRVKfDSh1EqRwa+k7XUb5xYpuB X3IoNLRrCY/uvWV8uOFuoM5CB1hVUeqHzmy98wMkNJbLBe+BFsk06Q49TLWwEt2uCg7B BsDg== X-Gm-Message-State: APjAAAV4LVL34KDMVpcStAURcY3X4Z9MAzNA4TtFJQMOyEMBmCQlYrns 315CEjxAoRuyZEzJ/oBtwfMtJg== X-Received: by 2002:a92:7f0f:: with SMTP id a15mr6918766ild.116.1571359800009; Thu, 17 Oct 2019 17:50:00 -0700 (PDT) Received: from viisi.Home ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z20sm1493891iof.38.2019.10.17.17.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 17:49:59 -0700 (PDT) From: Paul Walmsley To: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Alan Kao Subject: [PATCH 8/8] riscv: fp: add missing __user pointer annotations Date: Thu, 17 Oct 2019 17:49:29 -0700 Message-Id: <20191018004929.3445-9-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018004929.3445-1-paul.walmsley@sifive.com> References: <20191018004929.3445-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