summaryrefslogtreecommitdiff
path: root/include/kvm/arm_psci.h
diff options
context:
space:
mode:
authorOliver Upton <oupton@google.com>2022-02-08 04:27:05 +0300
committerMarc Zyngier <maz@kernel.org>2022-02-08 18:25:34 +0300
commitdfefa04a90cf9a20090cfa096153d64f95b7e33f (patch)
tree76e0a60a7a24bf8923ed88f74abc3524de68df59 /include/kvm/arm_psci.h
parentdfd42facf1e4ada021b939b4e19c935dcdd55566 (diff)
downloadlinux-dfefa04a90cf9a20090cfa096153d64f95b7e33f.tar.xz
KVM: arm64: Drop unused param from kvm_psci_version()
kvm_psci_version() consumes a pointer to struct kvm in addition to a vcpu pointer. Drop the kvm pointer as it is unused. While the comment suggests the explicit kvm pointer was useful for calling from hyp, there exist no such callsite in hyp. Signed-off-by: Oliver Upton <oupton@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220208012705.640444-1-oupton@google.com
Diffstat (limited to 'include/kvm/arm_psci.h')
-rw-r--r--include/kvm/arm_psci.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/kvm/arm_psci.h b/include/kvm/arm_psci.h
index 5b58bd2fe088..297645edcaff 100644
--- a/include/kvm/arm_psci.h
+++ b/include/kvm/arm_psci.h
@@ -16,11 +16,7 @@
#define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_0
-/*
- * We need the KVM pointer independently from the vcpu as we can call
- * this from HYP, and need to apply kern_hyp_va on it...
- */
-static inline int kvm_psci_version(struct kvm_vcpu *vcpu, struct kvm *kvm)
+static inline int kvm_psci_version(struct kvm_vcpu *vcpu)
{
/*
* Our PSCI implementation stays the same across versions from