* Fix the warnings when compiling kvm user space on 2.6.29
@ 2009-04-07 1:46 Zhiyong Wu
2009-04-07 10:46 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Zhiyong Wu @ 2009-04-07 1:46 UTC (permalink / raw)
To: kvm; +Cc: Avi Kivity, Herbert Xu, llim, zhaoyang
HI,
When compiling the lastest the code for kvm user space on 2.6.29 i386,
the following warnings has appeared:
test/x86/msr.c:10: warning: \u2018report\u2019 defined but not used
test/x86/msr.c:18: warning: \u2018wrmsr\u2019 defined but not used
test/x86/msr.c:23: warning: \u2018rdmsr\u2019 defined but not used
[root@fedora9 kvm-userspace {master}]$ git describe
kvm-84-488-gee8b55c
diff --git a/user/test/x86/msr.c b/user/test/x86/msr.c
index 5010ad0..92102fa 100644
--- a/user/test/x86/msr.c
+++ b/user/test/x86/msr.c
@@ -6,6 +6,7 @@
int nr_passed, nr_tests;
+#ifdef __x86_64__
static void report(const char *name, int passed)
{
++nr_tests;
@@ -27,6 +28,7 @@ static unsigned long long rdmsr(unsigned index)
return value;
}
+#endif
static void test_kernel_gs_base(void)
{
Cheers
Zhiyong Wu
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: Fix the warnings when compiling kvm user space on 2.6.29
2009-04-07 1:46 Fix the warnings when compiling kvm user space on 2.6.29 Zhiyong Wu
@ 2009-04-07 10:46 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-04-07 10:46 UTC (permalink / raw)
To: Zhiyong Wu; +Cc: kvm, Herbert Xu, llim, zhaoyang
Zhiyong Wu wrote:
> HI,
>
> When compiling the lastest the code for kvm user space on 2.6.29 i386,
>
> the following warnings has appeared:
>
> test/x86/msr.c:10: warning: \u2018report\u2019 defined but not used
> test/x86/msr.c:18: warning: \u2018wrmsr\u2019 defined but not used
> test/x86/msr.c:23: warning: \u2018rdmsr\u2019 defined but not used
>
>
Please send patches with a signoff, like kernel patches.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-07 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 1:46 Fix the warnings when compiling kvm user space on 2.6.29 Zhiyong Wu
2009-04-07 10:46 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox