Message ID | 20170714092540.1217397-5-arnd@arndb.de |
---|---|
State | Accepted |
Commit | 5623452a0eaec1d44cc9f0770444a48847c9953f |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp650343qge; Fri, 14 Jul 2017 02:29:02 -0700 (PDT) X-Received: by 10.98.2.149 with SMTP id 143mr4314511pfc.52.1500024542405; Fri, 14 Jul 2017 02:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500024542; cv=none; d=google.com; s=arc-20160816; b=hXz3nk9Affj5jPp9I84y3PU28Kt/PMCnQxtW5EfLN6G3pedpvIRVitFHv3G0ghHh7Y bUJqlCzQn/GvYO66k4sPDTWHgNxmnL8O0w8Rd1mO1RJVCj4AQQGaXfrKWTfRz0/ZQJKO fRpv31EtNU7mdHxvJVoIgltKAtoPJlk0YNRUE+et5chy7cVAWnbOC1eUOsogawHEY5Pm Nw7nyVwZX3v3afo7eTZLV7ZRFsducwLToZpnuSU8ZcHyercv1pI1ilp1YC+kJzN7GVcn 2dkJaQDDBM0JpP4AeYnDTW/Y419TW8lWBxtSp2j6ZyDKXROqslb59Y5s+7BprROGLAgX FN5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:references:in-reply-to:message-id:date :subject:to:from:delivered-to:arc-authentication-results; bh=W3qvNZ4voyT5M3fO+hzWpnvEJF+SaktPgqiHS9rl6yc=; b=nOFTeBd//iHLFqGmkB53+LsvJiriBGZEcgv9rAKeL2qHYLkQX716NJeVVUNig3AL6z z83A12+bkEdRtn7kJQMQaMc55uYpgGh9fgQsjue+VO0XJEWxNMO98WgNEhCJ7Qu9bwm+ 8+7fnf93g/SRU/3dMXQ15KCGib0WgxA1SK9lG4fQCLzxN0Lr+3ckUrcrVw3zvQZi1iS2 3Lm+ttHBm8sFnQdSMzzgSlq8OglhX7Xt/W90UPtSji3/82Fmwn8YzDLPTm0smJZwZ8jx IdYQu+h+PRzEhrHFy8tqHc2td7tHMN4iZ96+28Vca7eQk1V7MF8vKId2ND983d0MAEXx ceTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v68si6063214pgb.502.2017.07.14.02.29.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 02:29:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AE1F6E7AE; Fri, 14 Jul 2017 09:29:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id D85066E7AC for <dri-devel@lists.freedesktop.org>; Fri, 14 Jul 2017 09:28:59 +0000 (UTC) Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LoaZ0-1e7lXR2K9i-00gYj0; Fri, 14 Jul 2017 11:27:03 +0200 From: Arnd Bergmann <arnd@arndb.de> To: linux-kernel@vger.kernel.org, Bill Metzenthen <billm@melbpc.org.au>, x86@kernel.org Subject: [PATCH 04/14] x86: math-emu: avoid -Wint-in-bool-context warning Date: Fri, 14 Jul 2017 11:25:16 +0200 Message-Id: <20170714092540.1217397-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170714092540.1217397-1-arnd@arndb.de> References: <20170714092540.1217397-1-arnd@arndb.de> X-Provags-ID: V03:K0:Hh4ufQSHMIAol5nU82ELwxeaOTiTOZdWK3V5NC+WN4sbgugBUEi JdNUnF4eXaFCJRBP5Dad06DR951m2MJevWDoTPy+BBdfHkmSNoflFsplp3H3onCWdd0X+XW 20REG5g4n6VKenJshGIkaVfVQr8AZvvvAkMYfDsU78TO1SNeA1ToRj5EmwH4pfAHjCg/qXA KFKVhp2I2zJxp7cSpxn5A== X-UI-Out-Filterresults: notjunk:1; V01:K0:i8zEyOqgHHw=:WTVBsUHlVu/w1NjwRyOGR5 l1QfMaOhFfUjxc0FoVX72MZozqg3688WhVV8Jv2sQBjBUuI7s0QxTuIh1vCjaOkVdfdy69rON fWotLDbMr/OUzpLBwZ86TXRAqE5de4r8jr2p4AqBgvEYJ00AqpS4iHvMN+XUnFbl1dtz/WXir zzMEeLGabtxi/0B2F5GXxpelcqimbEToaXQA3coAIx7klN6PL4PJdgtkIed8CKU1KDiXHngwG T+mmSFlrMsKiViQmhXQNA+3y8G2CjlDpmgc/IAB+CAceTMx4g6SxyrVDLOuEBk/tOsPPiKpUg aXgmDc7tHfBbEtE9nqnNBhCGCva04mXJLdtYpjpta0HAS2xbUImR76LT9iAV2m0TDRrBNFjei k3at77g22UuSsYT6v5Jbv/5y5Dbp7MvXnCzKXkogU8EsTP4z96dXDfhBOaxsFC8a8kUctZgT2 VU45Zzp+KISusS1hDndx9l9nEYmzo6vp9V5KUsPthj5Zj1HVQGRXHZXujJbbO9w09FbRE45Ng eJl/4rkIuc0youi65u6Ps3LrhSe7QJyjJ8P1bQ6yJzHJx0PAmvPA8nl2eo7jBUfFBlmwsFi+U /WLDctSssYk3ER++ZJPo8BauJCku1oGI2jbQ/YmoZ6KAg89bNwpubkapXvfab4c8ImUPhwiFQ YSe9J1jKeggLnVOX0sRkm1A3zmBv++bDnO9yL2+PZ1+JKINkVFt4EebpUz4yddpe0naTZ5oe9 0+dM1odsy/CYYStRXFL87/dBWAfUfM2eN5Lq4A== Cc: Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, dri-devel@lists.freedesktop.org, linux-ide@vger.kernel.org, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, Tejun Heo <tj@kernel.org>, akpm@linux-foundation.org, Linus Torvalds <torvalds@linux-foundation.org>, Thomas Gleixner <tglx@linutronix.de>, Guenter Roeck <linux@roeck-us.net>, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
gcc-7 warnings
|
expand
|
diff --git a/arch/x86/math-emu/fpu_emu.h b/arch/x86/math-emu/fpu_emu.h index afbc4d805d66..c9c320dccca1 100644 --- a/arch/x86/math-emu/fpu_emu.h +++ b/arch/x86/math-emu/fpu_emu.h @@ -157,7 +157,7 @@ extern u_char const data_sizes_16[32]; #define signbyte(a) (((u_char *)(a))[9]) #define getsign(a) (signbyte(a) & 0x80) -#define setsign(a,b) { if (b) signbyte(a) |= 0x80; else signbyte(a) &= 0x7f; } +#define setsign(a,b) { if ((b) != 0) signbyte(a) |= 0x80; else signbyte(a) &= 0x7f; } #define copysign(a,b) { if (getsign(a)) signbyte(b) |= 0x80; \ else signbyte(b) &= 0x7f; } #define changesign(a) { signbyte(a) ^= 0x80; }
The setsign() macro gets called with an integer argument in a few places, leading to a harmless warning in gcc-7: arch/x86/math-emu/reg_add_sub.c: In function 'FPU_add': arch/x86/math-emu/reg_add_sub.c:80:48: error: ?: using integer constants in boolean context [-Werror=int-in-bool-context] This turns the integer into a boolean expression by comparing it to zero. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/math-emu/fpu_emu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)