x86/svm.c:534:18: warning: variable ‘data’ set but not used
Signed-off-by: Paolo Bonzini <[email protected]>
---
x86/svm.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/x86/svm.c b/x86/svm.c
index d51e7ec..9d910ae 100644
--- a/x86/svm.c
+++ b/x86/svm.c
@@ -11,7 +11,7 @@ u64 *pml4e;
u64 *pdpe;
u64 *pde[4];
u64 *pte[2048];
-u64 *scratch_page;
+void *scratch_page;
#define LATENCY_RUNS 1000000
@@ -531,9 +531,7 @@ static void npt_us_prepare(struct test *test)
static void npt_us_test(struct test *test)
{
- volatile u64 data;
-
- data = *scratch_page;
+ (void) *(volatile u64 *)scratch_page;
}
static bool npt_us_check(struct test *test)
--
1.8.4.2
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html