summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hv.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-12-11 14:23:11 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-14 13:34:50 -0800
commit9220e39b5c900c67ddcb517d52fe52d90fb5e3c8 (patch)
treea2b9ef3698898f67f4a8de882d87d5668a9b875a /drivers/hv/hv.c
parent1b2c841467515425636c15799ac90f6c4821acc0 (diff)
downloadop-kernel-dev-9220e39b5c900c67ddcb517d52fe52d90fb5e3c8.zip
op-kernel-dev-9220e39b5c900c67ddcb517d52fe52d90fb5e3c8.tar.gz
Drivers: hv: vmbus: fix build warning
We were getting build warning about unused variable "tsc_msr" and "va_tsc" while building for i386 allmodconfig. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv.c')
-rw-r--r--drivers/hv/hv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index 6341be8..ad7fc6d 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -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;
OpenPOWER on IntegriCloud