Drivers: hv: vmbus: fix build warning
[deliverable/linux.git] / drivers / hv / hv.c
index 6341be8739ae6e3a4931912a6fcd3139a0314c4c..ad7fc6d92c359e6dcc72c62445ced4f4a4e43c13 100644 (file)
@@ -192,9 +192,7 @@ int hv_init(void)
 {
        int max_leaf;
        union hv_x64_msr_hypercall_contents hypercall_msr;
-       union hv_x64_msr_hypercall_contents tsc_msr;
        void *virtaddr = NULL;
-       void *va_tsc = NULL;
 
        memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS);
        memset(hv_context.synic_message_page, 0,
@@ -240,6 +238,9 @@ int hv_init(void)
 
 #ifdef CONFIG_X86_64
        if (ms_hyperv.features & HV_X64_MSR_REFERENCE_TSC_AVAILABLE) {
+               union hv_x64_msr_hypercall_contents tsc_msr;
+               void *va_tsc;
+
                va_tsc = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL);
                if (!va_tsc)
                        goto cleanup;
This page took 0.030264 seconds and 5 git commands to generate.