summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2019-04-10 19:09:14 +0300
committerMarc Zyngier <marc.zyngier@arm.com>2019-04-18 19:14:01 +0300
commit0323e027df13c9f23d399476787918ab7e70a52d (patch)
tree15c3230327119b9faea4c4d2568d1eeefc00aab1 /arch/arm64/kvm
parenta3be836df7cb777fa8ecbfd662224bfe0394f771 (diff)
downloadlinux-0323e027df13c9f23d399476787918ab7e70a52d.tar.xz
KVM: arm: Make vcpu finalization stubs into inline functions
The vcpu finalization stubs kvm_arm_vcpu_finalize() and kvm_arm_vcpu_is_finalized() are currently #defines for ARM, which limits the type-checking that the compiler can do at runtime. The only reason for them to be #defines was to avoid reliance on the definition of struct kvm_vcpu, which is not available here due to circular #include problems. However, because these are stubs containing no code, they don't need the definition of struct kvm_vcpu after all; only a declaration is needed (which is available already). So in the interests of cleanliness, this patch converts them to inline functions. No functional change. Suggested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Dave Martin <Dave.Martin@arm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/kvm')
0 files changed, 0 insertions, 0 deletions