[PATCH] RISC-V: Remove unused "size" in ptrace

Palmer Dabbelt palmer at rivosinc.com
Wed Aug 30 13:37:54 PDT 2023


Looks like this just got lost somewhere in the respins.

Reported-by: kernel test robot <lkp at intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308310306.tOrkoBmI-lkp@intel.com/
Fixes: dbe46b094026 ("RISC-V: Add ptrace support for vectors")
Signed-off-by: Palmer Dabbelt <palmer at rivosinc.com>
---
 arch/riscv/kernel/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c
index 9a87e5d490b5..2afe460de16a 100644
--- a/arch/riscv/kernel/ptrace.c
+++ b/arch/riscv/kernel/ptrace.c
@@ -120,7 +120,7 @@ static int riscv_vr_set(struct task_struct *target,
 			unsigned int pos, unsigned int count,
 			const void *kbuf, const void __user *ubuf)
 {
-	int ret, size;
+	int ret;
 	struct __riscv_v_ext_state *vstate = &target->thread.vstate;
 	struct __riscv_v_regset_state ptrace_vstate;
 
-- 
2.41.0




More information about the linux-riscv mailing list