diff mbox

Fix the warnings when compiling kvm user space on 2.6.29

Message ID b1e768440904061846j48e18c28xd6b9775469bdc99b@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhiyong Wu April 7, 2009, 1:46 a.m. UTC
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



Cheers

Zhiyong Wu
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity April 7, 2009, 10:46 a.m. UTC | #1
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.
diff mbox

Patch

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)
 {