Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1996397imu; Fri, 14 Dec 2018 04:14:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/VzdAwlKz9ZHzdECJJb2P0vu6etcHkNdooTZTcvUe1UHnjCSwyBaXGyMWZPHXFpBrrwY8OJ X-Received: by 2002:a17:902:4a0c:: with SMTP id w12mr2715560pld.8.1544789692298; Fri, 14 Dec 2018 04:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789692; cv=none; d=google.com; s=arc-20160816; b=YCyC2PXWhEqWKPxLuTxy6u3v7ULuz6X+AAj13tRJ47ejdoPRMMCIUOaxAXgzGSUxi/ iFJuXLgjhU9GKGHMKTxkUQovPIIZ6vJ8qnQ3nXj/jgiGNaHpUeuoYIEbYLNccOZOAXk9 bpNyPOnUoEKI7gAl1GBlNf+wlUDfGVa2Y3n98/9KBd/4g/1ohADtVnAC9kuDAnucF9iN ikH/FVk4fwz5ARPIlKflq9ry/0d6yAGGFVmEPm3WkCMo/KnfQbBBnMAX+PHvn9FqnRnE tlU9Je+BHfG88fE74aYwXq614UDIvLB4mzoh7R1iKmq0IRAiJB29V7tedea1UWmWY3iL Pr6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XCnNOY6ud6g5OKEpj0H6zriLlV2Tzd+2nDSpOVMHiws=; b=RLRj2KDmErakiLm4Dii7PD3h5BbXmWMCc3Z76QiBUytZ4z5XNXlmiRD5Q7tYuKgKY8 Ay/mmnjp0f2MrzOPBXFzC3l/xPFyIw8jyCQ8c/b/CVCWz5CtAnu0GDpYM8uYnozHrsEC 7WEc3jXdTxFb6igp0/aOPiUEscwx0OfBwyUgYiJiUGWn+3+3btumfXT1tfqccIu2uaPY 1QOY/LLrcXuhMb1LhSRbibm2Zq+aUX5XGl0rNc0AiLX97Ubz6TyZAOfvIwQeBIfU2BVd bMOep0dg4tYKuSm0Ih+0MkxPYL9yugNpGOQRacXxLTNHqd0g2DlKUr7L5Yp5jrt0f9ht dZrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TQ0nrAGS; 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 i13si4014890pgg.100.2018.12.14.04.14.36; Fri, 14 Dec 2018 04:14:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TQ0nrAGS; 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 S1731952AbeLNMMc (ORCPT + 99 others); Fri, 14 Dec 2018 07:12:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:59704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731938AbeLNMMa (ORCPT ); Fri, 14 Dec 2018 07:12:30 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B3552133F; Fri, 14 Dec 2018 12:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789548; bh=ABbvC7f8KEGNhAMUD36PDttjiyVIXs9SvDmBT37rLEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TQ0nrAGSiTxM0U+padU/OGX2s7c6+mJfq2fL6yqK6R1sZEqmq/flMsoxjaJeh3lpK UtSIli99e8eyVxqbbal+KZkBGdd+r4LwqSGiYLToUFqQa2n+xp2tJcngyDH1BX0dtE E6eSOo8e6qHVo/DasBb4RVKcoL+PdBQeAvj41HDc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yi Wang , Paolo Bonzini , Sasha Levin Subject: [PATCH 4.9 35/51] x86/kvm/vmx: fix old-style function declaration Date: Fri, 14 Dec 2018 13:00:37 +0100 Message-Id: <20181214115716.347474536@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115713.244259772@linuxfoundation.org> References: <20181214115713.244259772@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 1e4329ee2c52692ea42cc677fb2133519718b34a ] The inline keyword which is not at the beginning of the function declaration may trigger the following build warnings, so let's fix it: arch/x86/kvm/vmx.c:1309:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:5947:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:5985:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:6023:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Yi Wang Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- arch/x86/kvm/vmx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 8888d894bf39..011050820608 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1077,7 +1077,7 @@ static void copy_vmcs12_to_shadow(struct vcpu_vmx *vmx); static void copy_shadow_to_vmcs12(struct vcpu_vmx *vmx); static int alloc_identity_pagetable(struct kvm *kvm); static void vmx_update_msr_bitmap(struct kvm_vcpu *vcpu); -static void __always_inline vmx_disable_intercept_for_msr(unsigned long *msr_bitmap, +static __always_inline void vmx_disable_intercept_for_msr(unsigned long *msr_bitmap, u32 msr, int type); static DEFINE_PER_CPU(struct vmcs *, vmxarea); @@ -4872,7 +4872,7 @@ static void free_vpid(int vpid) spin_unlock(&vmx_vpid_lock); } -static void __always_inline vmx_disable_intercept_for_msr(unsigned long *msr_bitmap, +static __always_inline void vmx_disable_intercept_for_msr(unsigned long *msr_bitmap, u32 msr, int type) { int f = sizeof(unsigned long); @@ -4907,7 +4907,7 @@ static void __always_inline vmx_disable_intercept_for_msr(unsigned long *msr_bit } } -static void __always_inline vmx_enable_intercept_for_msr(unsigned long *msr_bitmap, +static __always_inline void vmx_enable_intercept_for_msr(unsigned long *msr_bitmap, u32 msr, int type) { int f = sizeof(unsigned long); @@ -4942,7 +4942,7 @@ static void __always_inline vmx_enable_intercept_for_msr(unsigned long *msr_bitm } } -static void __always_inline vmx_set_intercept_for_msr(unsigned long *msr_bitmap, +static __always_inline void vmx_set_intercept_for_msr(unsigned long *msr_bitmap, u32 msr, int type, bool value) { if (value) -- 2.19.1