Unexport kvm_vcpu_cache and kvm_vcpu_{un}init() and make them static now that they are referenced only in kvm_main.c.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -157,8 +157,6 @@ static inline bool is_error_page(struct page *page) · 156 unmodified lines | ||
| 157 | 157 | #define KVM_USERSPACE_IRQ_SOURCE_ID 0 |
| 158 | 158 | #define KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID 1 |
| 159 | 159 | |
| 160 | −extern struct kmem_cache *kvm_vcpu_cache; | |
| 161 | − | |
| 162 | 160 | extern struct mutex kvm_lock; |
| 163 | 161 | extern struct list_head vm_list; |
| 164 | 162 | |
| @@ -579,8 +577,6 @@ static inline int kvm_vcpu_get_idx(struct kvm_vcpu *vcpu) · 414 unmodified lines | ||
| 579 | 577 | memslot < slots->memslots + KVM_MEM_SLOTS_NUM && memslot->npages;\ |
| 580 | 578 | memslot++) |
| 581 | 579 | |
| 582 | −int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id); | |
| 583 | −void kvm_vcpu_uninit(struct kvm_vcpu *vcpu); | |
| 584 | 580 | void kvm_vcpu_destroy(struct kvm_vcpu *vcpu); |
| 585 | 581 | |
| 586 | 582 | void vcpu_load(struct kvm_vcpu *vcpu); |