Skip to content

Commit

Permalink
KVM: VMX: fix sparse warning
Browse files Browse the repository at this point in the history
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 <hannes@hanneseder.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Hannes Eder authored and Avi Kivity committed Dec 31, 2008
1 parent e8ba5d3 commit efff9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit efff9e5

Please sign in to comment.