* [PATCH] KVM: VMX: fix sparse warning
@ 2008-11-28 16:02 Hannes Eder
2008-11-30 10:15 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Eder @ 2008-11-28 16:02 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm, linux-kernel, kernel-janitors, trivial
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>
---
arch/x86/kvm/vmx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 7ea4855..e446f23 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -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;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: VMX: fix sparse warning
2008-11-28 16:02 [PATCH] KVM: VMX: fix sparse warning Hannes Eder
@ 2008-11-30 10:15 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-11-30 10:15 UTC (permalink / raw)
To: Hannes Eder; +Cc: kvm, linux-kernel, kernel-janitors, trivial
Hannes Eder wrote:
> 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.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-30 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 16:02 [PATCH] KVM: VMX: fix sparse warning Hannes Eder
2008-11-30 10:15 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox