diff options
author | Andrew Jones <drjones@redhat.com> | 2020-08-04 19:06:01 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-08-21 15:04:14 +0200 |
commit | 4d2d4ce001f283ed8127173543b4cfb65641e357 (patch) | |
tree | b5b89b639c50992b6f10cd3dd23eace72238db65 /arch/arm64 | |
parent | KVM: arm64: pvtime: Fix potential loss of stolen time (diff) | |
download | linux-4d2d4ce001f283ed8127173543b4cfb65641e357.tar.xz linux-4d2d4ce001f283ed8127173543b4cfb65641e357.zip |
KVM: arm64: Drop type input from kvm_put_guest
We can use typeof() to avoid the need for the type input.
Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200804170604.42662-4-drjones@redhat.com
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kvm/pvtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/pvtime.c b/arch/arm64/kvm/pvtime.c index 95f9580275b1..241ded7ee0ad 100644 --- a/arch/arm64/kvm/pvtime.c +++ b/arch/arm64/kvm/pvtime.c @@ -32,7 +32,7 @@ void kvm_update_stolen_time(struct kvm_vcpu *vcpu) steal_le = cpu_to_le64(steal); idx = srcu_read_lock(&kvm->srcu); offset = offsetof(struct pvclock_vcpu_stolen_time, stolen_time); - kvm_put_guest(kvm, base + offset, steal_le, u64); + kvm_put_guest(kvm, base + offset, steal_le); srcu_read_unlock(&kvm->srcu, idx); } |