]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: arm64: Remove unused parameter in synchronize_vcpu_pstate()
authorAlexandru Elisei <alexandru.elisei@arm.com>
Tue, 16 Dec 2025 10:30:53 +0000 (10:30 +0000)
committerOliver Upton <oupton@kernel.org>
Thu, 8 Jan 2026 20:56:17 +0000 (12:56 -0800)
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>
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vhe/switch.c

index c5d5e5b86eaf0292e1d32443bf011c62664ca2d0..afecbdd3c1e93aa7278b2d51bdea00d383f73e4d 100644 (file)
@@ -854,7 +854,7 @@ static inline bool kvm_hyp_handle_exit(struct kvm_vcpu *vcpu, u64 *exit_code,
        return false;
 }
 
-static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu, u64 *exit_code)
+static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu)
 {
        /*
         * Check for the conditions of Cortex-A510's #2077057. When these occur
index d3b9ec8a7c283435cc771276fe8ee3b52fe6c413..779089e42681e8c4add0e404e55a2f9b912ba38a 100644 (file)
@@ -211,7 +211,7 @@ static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
 {
        const exit_handler_fn *handlers = kvm_get_exit_handler_array(vcpu);
 
-       synchronize_vcpu_pstate(vcpu, exit_code);
+       synchronize_vcpu_pstate(vcpu);
 
        /*
         * Some guests (e.g., protected VMs) are not be allowed to run in
index 9984c492305a84c343749b7a1d9078ee1e0cd5b4..9db3f11a4754d688e5e9b89f5ba84407885fb79f 100644 (file)
@@ -536,7 +536,7 @@ static const exit_handler_fn hyp_exit_handlers[] = {
 
 static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
 {
-       synchronize_vcpu_pstate(vcpu, exit_code);
+       synchronize_vcpu_pstate(vcpu);
 
        /*
         * If we were in HYP context on entry, adjust the PSTATE view