Fix the warnings when compiling kvm user space on 2.6.29

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux