Skip to contentSkip to conversation

KVM: fix sparse warning

PATCH Applied Hannes Eder 2 participants 2 messages Nov 28, 2008 – Nov 30, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: fix sparse warning

Impact: make global function static

virt/kvm/kvm_main.c:85:6: warning: symbol 'kvm_rebooting' was not declared. Should it be static?

---
 virt/kvm/kvm_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
virt/kvm/kvm_main.c +1 -1
index 54d25e6..8dab7ce 100644
@@ -82,7 +82,7 @@ struct dentry *kvm_debugfs_dir;
 static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
 			   unsigned long arg);
 
-bool kvm_rebooting;
+static bool kvm_rebooting;
 
 #ifdef KVM_CAP_DEVICE_ASSIGNMENT
 
Signature · 1 line
1.5.6.3
Applied
#1 lore raw
Quoted 4 lines · Hannes Eder

Impact: make global function static

virt/kvm/kvm_main.c:85:6: warning: symbol 'kvm_rebooting' was not declared. Should it be static?

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function