Skip to contentSkip to conversation

kernel:Make functions that have no external callers static in kvm.c

PATCH RESEND Paolo Bonzini 1 participant 1 message May 20, 2015 1 message not in the archive KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer Applied
#1 lore raw
In reply to a message not in the archive
Quoted 24 lines · Nicholas Krause

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.

---
 arch/x86/kernel/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/kvm.c +1 -1
index 9435620..cc34cec 100644
@@ -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;

arch/x86/kernel/kvm.c static inline void spin_time_accum_blocked(u64 start) · line 661

Quoted 8 lines
arch/x86/kernel/kvm.c +1 -1
@@ -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)

Applied, thanks.

Paolo