Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9052imu; Wed, 7 Nov 2018 19:21:31 -0800 (PST) X-Google-Smtp-Source: AJdET5fEKSCkcfllzcrUV17k3n6w/KwoQ9eH3wDqG6IGwgkNX9h5ECLTQ2bbRYnpaWL886bLQJ6P X-Received: by 2002:a62:4681:: with SMTP id o1-v6mr2970753pfi.172.1541647291838; Wed, 07 Nov 2018 19:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541647291; cv=none; d=google.com; s=arc-20160816; b=X2yT9gEJZcSmhK/MXpChga+nSIBFvwes+dCA3xsaRZlTaqWOLTm8+t8OCx9I9pm/4s EMrPEzmCbxwIkTKdYjeqPQen3m7/SftQlOjFHwiFmrydQc+IWLW3erF99mW50Wr43CHG 9KKQ0xlhlZXg9VDbCCvwl5EpRGrurVgN9hsyb0DAEtxkGkZ5zYzfxqgv+MMUc54yusfi RJJqPvqId7KEw15GYqfS5eunFPx7Vvue0P4DN+9cXCmqkHVOPH4gSfn3J0FcZAZhouMu C/AyV7FZGn4squoyL3eUrDxVzGre73KNVDaJl/ACVtitXRH4EjHnE6qNMM699Jjap+xs ma5A== 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 :message-id:date:subject:cc:to:from; bh=A/up47YtOSm0sisjw3e9/JhFp1Mf/kT9q71FdHOWIIg=; b=eOqGBc8VU8wtk6a/AJGuvNzFCZCkEI3UyvllJYNijtvR3xRLwXxH53lVtQqKLBh+hc /PNQf0H5cCPT2WUmAZyR28ItI4I4588KI1D//2UnZ9uW89llpvBB4+myXxc83TUdoSiG hpDQkNrm6Stnae1IUfT+oMm/6zzUD62KLr/3w6wCIyjG4o924i+NhQhBaUQx2wklbjDw 48w4HimFwLTgLMNZdCCClfVPmH41eUUEWvidst2DL8/ilVyoqunh9sl8CEO2lPhfmP6m q9WO+4QDL0/vsUFDfgsAHGM1NxPq71tGDGqpXjpuso2Wcf/z19ewnagAlwTSmh9o8Dg4 Cvxw== 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 e1-v6si2845636plk.4.2018.11.07.19.21.15; Wed, 07 Nov 2018 19:21:31 -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 S1728721AbeKHMyQ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Nov 2018 07:54:16 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:60444 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728618AbeKHMyP (ORCPT ); Thu, 8 Nov 2018 07:54:15 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 094777ADA92E5ED57A6E; Thu, 8 Nov 2018 11:20:50 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wA83KNhA098181; Thu, 8 Nov 2018 11:20:23 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018110811205110-9335681 ; Thu, 8 Nov 2018 11:20:51 +0800 From: Yi Wang To: pbonzini@redhat.com Cc: rkrcmar@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Yi Wang Subject: [PATCH] x86/kvm/vmx: fix old-style function declaration Date: Thu, 8 Nov 2018 11:22:21 +0800 Message-Id: <1541647341-28751-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-08 11:20:51, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-08 11:20:11 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wA83KNhA098181 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 4555077..cd8355b 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1306,7 +1306,7 @@ static void vmx_get_segment(struct kvm_vcpu *vcpu, static bool nested_vmx_is_page_fault_vmexit(struct vmcs12 *vmcs12, u16 error_code); 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); @@ -5944,7 +5944,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); @@ -5982,7 +5982,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); @@ -6020,7 +6020,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) -- 1.8.3.1