Message ID | b1e768440904061846j48e18c28xd6b9775469bdc99b@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 --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) {