]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: kvm: vcpu_timer: fix unused variable warnings
authorConor Dooley <conor.dooley@microchip.com>
Sun, 14 Aug 2022 14:12:35 +0000 (15:12 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 19 Aug 2022 17:52:44 +0000 (23:22 +0530)
commit763d30d246194bf9485149235eb39c33db297bf6
tree0ef4378989da514de66793e69de3cd3fbe802163
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
riscv: kvm: vcpu_timer: fix unused variable warnings

In two places, csr is set but never used:

arch/riscv/kvm/vcpu_timer.c:302:23: warning: variable 'csr' set but not used [-Wunused-but-set-variable]
        struct kvm_vcpu_csr *csr;
                             ^
arch/riscv/kvm/vcpu_timer.c:327:23: warning: variable 'csr' set but not used [-Wunused-but-set-variable]
        struct kvm_vcpu_csr *csr;
                             ^

Remove the variable.

Fixes: 7b8d4fb15676 ("RISC-V: KVM: Support sstc extension")
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_timer.c