summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorXiubo Li2015-03-13 10:39:45 +0100
committerMarcelo Tosatti2015-03-18 02:38:28 +0100
commit52eb5a6d576b5bca14797a4085abdd68ad8c0b3f (patch)
tree4256309552448c43dd8555f70d8cd470c3c7f0ce /arch/x86/kvm/svm.c
parentKVM: x86: Avoid using plain integer as NULL pointer warning (diff)
downloadkernel-qcow2-linux-52eb5a6d576b5bca14797a4085abdd68ad8c0b3f.tar.gz
kernel-qcow2-linux-52eb5a6d576b5bca14797a4085abdd68ad8c0b3f.tar.xz
kernel-qcow2-linux-52eb5a6d576b5bca14797a4085abdd68ad8c0b3f.zip
KVM: x86: For the symbols used locally only should be static type
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>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 001e630ea7c6..3ef203a45c3e 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2906,7 +2906,8 @@ static int rdpmc_interception(struct vcpu_svm *svm)
return 1;
}
-bool check_selective_cr0_intercepted(struct vcpu_svm *svm, unsigned long val)
+static bool check_selective_cr0_intercepted(struct vcpu_svm *svm,
+ unsigned long val)
{
unsigned long cr0 = svm->vcpu.arch.cr0;
bool ret = false;