Skip to contentSkip to conversation

KVM: VMX: fix sparse warning

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

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

PATCH 1/1 KVM: VMX: fix sparse warning

Impact: make global function static

arch/x86/kvm/vmx.c:134:3: warning: symbol 'vmx_capability' was not declared. Should it be static?

---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
index 7ea4855..e446f23 100644
@@ -128,7 +128,7 @@ static struct vmcs_config {
 	u32 vmentry_ctrl;
 } vmcs_config;
 
-struct vmx_capability {
+static struct vmx_capability {
 	u32 ept;
 	u32 vpid;
 } vmx_capability;
Signature · 1 line
1.5.6.3
Applied
#1 lore raw
Quoted 4 lines · Hannes Eder

Impact: make global function static

arch/x86/kvm/vmx.c:134:3: warning: symbol 'vmx_capability' was not declared. Should it be static?

Applied, thanks.

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