diff options
author | Xiubo Li <lixiubo@cmss.chinamobile.com> | 2015-02-26 01:58:21 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2015-03-10 09:37:44 -0400 |
commit | f4fee93270abbf862aab268111ac1e12934130c4 (patch) | |
tree | b96f1ad744176c727bd08ca63fd4e61c98f20c83 /virt | |
parent | a642a1756752421e5f6661d951943b53225c03eb (diff) |
KVM: Fix ERROR: do not initialise statics to 0 or NULL in kvm_main.c
ERROR: do not initialise statics to 0 or NULL
+static int kvm_usage_count = 0;
The kvm_usage_count will be placed to .bss segment when linking, so
not need to set it to 0 here obviously.
This patch fixes this ERROR to reduce noise when checking new patches
in kvm_main.c.
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4146d01319d0..7d2c2ac3cb8a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -80,7 +80,7 @@ static DEFINE_RAW_SPINLOCK(kvm_count_lock); | |||
80 | LIST_HEAD(vm_list); | 80 | LIST_HEAD(vm_list); |
81 | 81 | ||
82 | static cpumask_var_t cpus_hardware_enabled; | 82 | static cpumask_var_t cpus_hardware_enabled; |
83 | static int kvm_usage_count = 0; | 83 | static int kvm_usage_count; |
84 | static atomic_t hardware_enable_failed; | 84 | static atomic_t hardware_enable_failed; |
85 | 85 | ||
86 | struct kmem_cache *kvm_vcpu_cache; | 86 | struct kmem_cache *kvm_vcpu_cache; |