summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorPaul Walmsley <paul.walmsley@sifive.com>2019-10-17 15:41:25 -0700
committerPaul Walmsley <paul.walmsley@sifive.com>2019-10-28 00:46:01 -0700
commita48dac448d85712dbc827cdfeb29f720f2c345ff (patch)
tree4121c8380e83e57de672fcfbe7126943d3296881 /arch/riscv/kernel
parent5ed881bc3afc40d7a23c2211ead1aeb4980dda20 (diff)
downloadlinux-a48dac448d85712dbc827cdfeb29f720f2c345ff.tar.gz
linux-a48dac448d85712dbc827cdfeb29f720f2c345ff.tar.bz2
linux-a48dac448d85712dbc827cdfeb29f720f2c345ff.zip
riscv: fp: add missing __user pointer annotations
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 <paul.walmsley@sifive.com> Fixes: 007f5c358957 ("Refactor FPU code in signal setup/return procedures") Cc: Alan Kao <alankao@andestech.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c
index b14d7647d800..64bc914ce9ff 100644
--- a/arch/riscv/kernel/signal.c
+++ b/arch/riscv/kernel/signal.c
@@ -26,7 +26,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;
@@ -53,7 +53,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;