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

Nick Desaulniers ndesaulniers at google.com
Thu Aug 31 10:19:59 PDT 2023


On Wed, Aug 30, 2023 at 01:37:54PM -0700, Palmer Dabbelt wrote:
> 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/[email protected]/
> Fixes: dbe46b094026 ("RISC-V: Add ptrace support for vectors")
> Signed-off-by: Palmer Dabbelt <palmer at rivosinc.com>

Thanks for the patch!
Reviewed-by: Nick Desaulniers <ndesaulniers at google.com>
Reported-by: "kernelci.org bot" <bot at kernelci.org>
Closes: https://lore.kernel.org/linux-next/[email protected]/

> ---
>  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
> 
> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> https://lists.infradead.org/mailman/listinfo/linux-riscv



More information about the linux-riscv mailing list
OSZAR »