diff options
author | Conor Dooley <conor.dooley@microchip.com> | 2022-08-14 17:12:35 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-08-19 20:52:44 +0300 |
commit | fd0cd59f322b1919bfc68cd245d51906f7f1ba2a (patch) | |
tree | 0ef4378989da514de66793e69de3cd3fbe802163 /arch/riscv/include/asm/kvm_vcpu_sbi.h | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) | |
download | linux-fd0cd59f322b1919bfc68cd245d51906f7f1ba2a.tar.xz |
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: 8f5cb44b1bae ("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>
Diffstat (limited to 'arch/riscv/include/asm/kvm_vcpu_sbi.h')
0 files changed, 0 insertions, 0 deletions