diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-07-17 09:54:52 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-07-19 20:17:10 -0400 |
commit | ca0565f5736e67af3172d188577b57e303dd082a (patch) | |
tree | bef560242641ce58456cbee2b6c0771bf2b1f7a1 /virt | |
parent | 903816fa4d016e20ec71a1a97700cfcdda115580 (diff) |
KVM: make bad_pfn static to kvm_main.c
bad_pfn is not used out of kvm_main.c, so mark it static, also move it near
hwpoison_pfn and fault_pfn
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0fbbf2d21603..f955eee92aa9 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -100,6 +100,9 @@ EXPORT_SYMBOL_GPL(kvm_rebooting); | |||
100 | 100 | ||
101 | static bool largepages_enabled = true; | 101 | static bool largepages_enabled = true; |
102 | 102 | ||
103 | struct page *bad_page; | ||
104 | static pfn_t bad_pfn; | ||
105 | |||
103 | static struct page *hwpoison_page; | 106 | static struct page *hwpoison_page; |
104 | static pfn_t hwpoison_pfn; | 107 | static pfn_t hwpoison_pfn; |
105 | 108 | ||
@@ -2691,9 +2694,6 @@ static struct syscore_ops kvm_syscore_ops = { | |||
2691 | .resume = kvm_resume, | 2694 | .resume = kvm_resume, |
2692 | }; | 2695 | }; |
2693 | 2696 | ||
2694 | struct page *bad_page; | ||
2695 | pfn_t bad_pfn; | ||
2696 | |||
2697 | static inline | 2697 | static inline |
2698 | struct kvm_vcpu *preempt_notifier_to_vcpu(struct preempt_notifier *pn) | 2698 | struct kvm_vcpu *preempt_notifier_to_vcpu(struct preempt_notifier *pn) |
2699 | { | 2699 | { |