Skip to content

Commit d252c78

Browse files
Alexandru EliseiOliver Upton
authored andcommitted
KVM: arm64: Remove unused parameter in synchronize_vcpu_pstate()
synchronize_vcpu_pstate() doesn't make use of the reference to exit_code, remove the parameter. Reviewed-by: Fuad Tabba <tabba@google.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Reviewed-by: Marc Zyngier <maz@kernel.org> Tested-by: Fuad Tabba <tabba@google.com> Link: https://msgid.link/20251216103053.47224-5-alexandru.elisei@arm.com Signed-off-by: Oliver Upton <oupton@kernel.org>
1 parent 26cdea4 commit d252c78

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

arch/arm64/kvm/hyp/include/hyp/switch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static inline bool kvm_hyp_handle_exit(struct kvm_vcpu *vcpu, u64 *exit_code,
854854
return false;
855855
}
856856

857-
static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu, u64 *exit_code)
857+
static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu)
858858
{
859859
/*
860860
* Check for the conditions of Cortex-A510's #2077057. When these occur

arch/arm64/kvm/hyp/nvhe/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
211211
{
212212
const exit_handler_fn *handlers = kvm_get_exit_handler_array(vcpu);
213213

214-
synchronize_vcpu_pstate(vcpu, exit_code);
214+
synchronize_vcpu_pstate(vcpu);
215215

216216
/*
217217
* Some guests (e.g., protected VMs) are not be allowed to run in

arch/arm64/kvm/hyp/vhe/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static const exit_handler_fn hyp_exit_handlers[] = {
536536

537537
static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
538538
{
539-
synchronize_vcpu_pstate(vcpu, exit_code);
539+
synchronize_vcpu_pstate(vcpu);
540540

541541
/*
542542
* If we were in HYP context on entry, adjust the PSTATE view

0 commit comments

Comments
 (0)