Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1993013imu; Fri, 14 Dec 2018 04:12:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VwwUgQgC03ej2C1TiBn4pJ/NIq07mS0TSq7OvwyAyEwCUzrn9ShWK1pYIKHuTOF/WUG/Yy X-Received: by 2002:a17:902:1005:: with SMTP id b5mr2670880pla.310.1544789523413; Fri, 14 Dec 2018 04:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789523; cv=none; d=google.com; s=arc-20160816; b=Un7qCobhe7fN+gdoDwuh7Rc3P9CtZWKThkXh7LV1NX1lz4znqeT9Ohpw0HJFnpJRWQ xVGXz2mgO/cPi26tWKNW1nkDLE5I31fhcHEEzLmV1KNLZD5pXIANcKzWH2ofn06DBZ4f 9dD9jOPPJ8UaqV1UmygScw26XvtjNG9ksP8stM7yGFqi742SOMSu6ASLf7AKawFIR7x2 uX3ckNrApCBh0U1uoEkaWW4xmx2V/DA7d/T6iGM3vOz40K4Hg6GOsBRNVudj6AlWNQPu OLq9Wk1a3pRcCSjablR/vMV+DZUhnAYAQTfHaU61NBf3sNOC4eTK0pATIQ2FR3ALzMdI JMrQ== 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=YCjn1jB/W98h+zYviJtcTBGWs164G6PwNdJE06Umxoo=; b=lFhTPuPHKZeSiLhO+n68K+8Y6uEQD9ySJlYlkqcvtLfnB4l1JJ8c2BL+aIi/wsjM1U 1/3tV2gibEzQcntmpUSpfuyzgZrX5orMSUERaUiplXZDomVdrC6DYTASQ9o8/ed82mFI zc8xeN/QaD/YMd1nM3qr2Tz7dIASbTc0j1fen5ltJaB3XgW+Q1z/Tw0rnBI+uq02n4cB gDX+WCB5jwM7PLFPojkCLbx8Cw4WKF1RHSmbQKCA0/mSyjZfoNLaMnhr89BqhyTg156T zPYKsDnGJUT/vZGj69n5yzzjAzVZOu1UB9ujC7zoGUlL+Y9c0UDLs6dM1/Im+UwVwnTQ Ah+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SWqYW88G; 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 j5si4085805pfg.254.2018.12.14.04.11.48; Fri, 14 Dec 2018 04:12:03 -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=SWqYW88G; 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 S1731468AbeLNMJ3 (ORCPT + 99 others); Fri, 14 Dec 2018 07:09:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:55152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731458AbeLNMJ1 (ORCPT ); Fri, 14 Dec 2018 07:09:27 -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 7C8F6214AE; Fri, 14 Dec 2018 12:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789367; bh=D1HzuA87aCdMnRfPvFPWz3WaDrGUS8J6VLnxu+IUOJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SWqYW88GyhVzAr9zKke7nqoVQuHs7RhloTO66e4liXagRYKx3soJ79/6pOUjeKEjD Hk5cmFu1Ntg3eDFmpo4yT9jYyzAJbnpaOWEpk6uFM1fhx+5ZnCjdcy+IVhLYL1I2wA EVErxgvPKyCzFkgn/szVhj9u9iGmbVSp4iWhP7YU= 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.14 55/89] KVM: x86: fix empty-body warnings Date: Fri, 14 Dec 2018 13:00:08 +0100 Message-Id: <20181214115732.390048251@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 354cb410d87314e2eda344feea84809e4261570a ] We get the following warnings about empty statements when building with 'W=1': arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1936:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1975:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Rework the debug helper macro to get rid of these warnings. Signed-off-by: Yi Wang Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- arch/x86/kvm/lapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 13dfb55b84db..f7c34184342a 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -55,7 +55,7 @@ #define PRIo64 "o" /* #define apic_debug(fmt,arg...) printk(KERN_WARNING fmt,##arg) */ -#define apic_debug(fmt, arg...) +#define apic_debug(fmt, arg...) do {} while (0) /* 14 is the version for Xeon and Pentium 8.4.8*/ #define APIC_VERSION (0x14UL | ((KVM_APIC_LVT_NUM - 1) << 16)) -- 2.19.1