KVM: VMX: fix sparse warning
Subsystems (4)
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?
Signed-off-by Hannes Eder <[email protected]>
--- arch/x86/kvm/vmx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
@@ -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
Avi Kivity
AppliedQuoted 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