From: Paul Walmsley Date: Thu, 17 Oct 2019 22:41:25 +0000 (-0700) Subject: riscv: fp: add missing __user pointer annotations X-Git-Tag: v5.4-rc6~11^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a48dac448d85712dbc827cdfeb29f720f2c345ff;p=platform%2Fkernel%2Flinux-rpi.git 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 Fixes: 007f5c358957 ("Refactor FPU code in signal setup/return procedures") Cc: Alan Kao Reviewed-by: Christoph Hellwig --- diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index b14d764..64bc914 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;