Received: by 10.223.185.116 with SMTP id b49csp1128226wrg; Fri, 23 Feb 2018 12:25:38 -0800 (PST) X-Google-Smtp-Source: AH8x226rm9YLqYEdEOITfQa3Jwb98GFJx4pVttDeJq5FY3tqN0ox0/Q/nhkEaMBp+Nkh/lfemho7 X-Received: by 10.101.64.139 with SMTP id t11mr2314490pgp.304.1519417537907; Fri, 23 Feb 2018 12:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417537; cv=none; d=google.com; s=arc-20160816; b=f242/ahpmDfGsfPBKU8aBgS/RffLAftcyVj6m47+4v7QnmnpNA6ji5fPn15ZyUL89x aPiCUgMrNdxyXSLgT8QRZ/fDvNWumNQlbEEsQ5VXmL940iO96P18uD5//De3VGaGSNit XqcIeV2ETqWddbcEroCKnfJqDTtoyftEDKD0tUGjk6XJ0benk/EgJnMzHEceBAiAUeYN p6luvSJYu6ducHq1EbgAdfspCapRtrxbFoHVprZ0LBGkc+svGR3XJurHBGx+OXk8g2ja yyNTWJO0CICICRrZhEI0sfgqNV2XZOIMpXnsLJNzle61CsVw+MgVsj0j+NAdTIb+hqMu KLBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BKpr4H7msAsK9ME2GbrN7w2i16zkM/cf+DTGEXVBPV0=; b=PPr44ftgLyUZHoy7/qu+3Yig3wgsrRoahzrP/M8aUcmC/22D+HAjnvlmKhKdUtXtXt ssDLv72WYJtAuIH2LMHQbW0J/MvuIog1NaCOg+j+lD4/PHutT0LjA8idb+Tu+qZaGcW7 E2I8T+8relx+mKUNiUiw7tMm78+ZuJZZ8mJU4bM2EMCkG0TCWKqkv09dcHkACwhNq1de n3LsGJ7nWUO6kYoT7+I/Dkb8X4z8mXYvv7C1klvLjb5002ZwEf6p60ndZInayGB3epFn iTd7w/RkkAlQgaNc7B5DVC1nLQFlXGbHV5wPACESOnUXNZHuGGNYa3nQhns4sTnhu6q0 RtWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc5-v6si2265416plb.506.2018.02.23.12.25.23; Fri, 23 Feb 2018 12:25:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932251AbeBWShx (ORCPT + 99 others); Fri, 23 Feb 2018 13:37:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38806 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbeBWShv (ORCPT ); Fri, 23 Feb 2018 13:37:51 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 80CC6BBF; Fri, 23 Feb 2018 18:37:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 4.4 110/193] Drivers: hv: vmbus: fix build warning Date: Fri, 23 Feb 2018 19:25:43 +0100 Message-Id: <20180223170343.137986981@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sudip Mukherjee commit 9220e39b5c900c67ddcb517d52fe52d90fb5e3c8 upstream. We were getting build warning about unused variable "tsc_msr" and "va_tsc" while building for i386 allmodconfig. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/hv/hv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -195,9 +195,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, @@ -243,6 +241,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;