KVM: x86: For the symbols used locally only should be static type
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 13 Mar 2015 09:39:45 +0000 (17:39 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 18 Mar 2015 01:38:28 +0000 (22:38 -0300)
This patch fix the following sparse warnings:

for arch/x86/kvm/x86.c:
warning: symbol 'emulator_read_write' was not declared. Should it be static?
warning: symbol 'emulator_write_emulated' was not declared. Should it be static?
warning: symbol 'emulator_get_dr' was not declared. Should it be static?
warning: symbol 'emulator_set_dr' was not declared. Should it be static?

for arch/x86/kvm/pmu.c:
warning: symbol 'fixed_pmc_events' was not declared. Should it be static?

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/svm.c
arch/x86/kvm/x86.c

index 8e6b7d8..29fbf9d 100644 (file)
@@ -38,7 +38,7 @@ static struct kvm_arch_event_perf_mapping {
 };
 
 /* mapping between fixed pmc index and arch_events array */
-int fixed_pmc_events[] = {1, 0, 7};
+static int fixed_pmc_events[] = {1, 0, 7};
 
 static bool pmc_is_gp(struct kvm_pmc *pmc)
 {
Simple merge
Simple merge