kvm: x86: Make functions that have no external callers static
authorNicholas Krause <xerofoify@gmail.com>
Wed, 20 May 2015 04:24:10 +0000 (00:24 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 May 2015 09:48:21 +0000 (11:48 +0200)
This makes the functions kvm_guest_cpu_init and  kvm_init_debugfs
static now due to having no external callers outside their
declarations in the file, kvm.c.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c

index 9435620062df30e549d1510baaf9c4c72ab90290..cc34cece853e6f55c8b3a901ceabda8b23410fdf 100644 (file)
@@ -331,7 +331,7 @@ static void kvm_guest_apic_eoi_write(u32 reg, u32 val)
        apic_write(APIC_EOI, APIC_EOI_ACK);
 }
 
-void kvm_guest_cpu_init(void)
+static void kvm_guest_cpu_init(void)
 {
        if (!kvm_para_available())
                return;
@@ -655,7 +655,7 @@ static inline void spin_time_accum_blocked(u64 start)
 static struct dentry *d_spin_debug;
 static struct dentry *d_kvm_debug;
 
-struct dentry *kvm_init_debugfs(void)
+static struct dentry *kvm_init_debugfs(void)
 {
        d_kvm_debug = debugfs_create_dir("kvm-guest", NULL);
        if (!d_kvm_debug)