History

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.

Oliver Upton committed 4 years ago

Commit dfefa041 parent dfd42fa2 files · +4 −8Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/kvm/arm_psci.h+1−5
@@ -16,11 +16,7 @@ · 15 unmodified lines
1616
1717 #define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_0
1818
19−/*
20− * We need the KVM pointer independently from the vcpu as we can call
21− * this from HYP, and need to apply kern_hyp_va on it...
22− */
23−static inline int kvm_psci_version(struct kvm_vcpu *vcpu, struct kvm *kvm)
19+static inline int kvm_psci_version(struct kvm_vcpu *vcpu)
2420 {
2521 /*
2622 * Our PSCI implementation stays the same across versions from

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t