Skip to content

Commit a48dac4

Browse files
riscv: fp: add missing __user pointer annotations
The __user annotations were removed from the {save,restore}_fp_state() function signatures by commit 007f5c3 ("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 <[email protected]> Fixes: 007f5c3 ("Refactor FPU code in signal setup/return procedures") Cc: Alan Kao <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 5ed881b commit a48dac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/kernel/signal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct rt_sigframe {
2626

2727
#ifdef CONFIG_FPU
2828
static long restore_fp_state(struct pt_regs *regs,
29-
union __riscv_fp_state *sc_fpregs)
29+
union __riscv_fp_state __user *sc_fpregs)
3030
{
3131
long err;
3232
struct __riscv_d_ext_state __user *state = &sc_fpregs->d;
@@ -53,7 +53,7 @@ static long restore_fp_state(struct pt_regs *regs,
5353
}
5454

5555
static long save_fp_state(struct pt_regs *regs,
56-
union __riscv_fp_state *sc_fpregs)
56+
union __riscv_fp_state __user *sc_fpregs)
5757
{
5858
long err;
5959
struct __riscv_d_ext_state __user *state = &sc_fpregs->d;

0 commit comments

Comments
 (0)