Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2235957ybd; Mon, 24 Jun 2019 03:04:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPzel2uoK0tlRV//iuuKvCQao9tVxgk8gtQtQk8+vFouISgjTVGokPCQs00J8D8czuoyt1 X-Received: by 2002:a65:43cd:: with SMTP id n13mr17816332pgp.208.1561370662006; Mon, 24 Jun 2019 03:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561370661; cv=none; d=google.com; s=arc-20160816; b=fCZzvkjkKdhYGmvdDgnYFSkVI5M7unoIBf0A2JLO5PTINxfeE+CLqitW8vG5sh921H pKg2a5+BBA8Vb8rKOwmnlNm0AZPe9rtAJ9CFpgnc1GyZ3R0WC9V1ny9mLCSYM1ybovkU YH4AYj1Uxqft/FEeJ7B/xDvqIRSX3x/GKjJ8aMPF3kGm/w3LhubqdbX29yr0+OsrKnIU FPo7+X2hup+2qn3pnFFCt8G3kchOjjAHdHViQpB/ET5rPO/OZn1HW5qkPyd3bcnQy7l6 CPIbj415NIAlEmvyyN6ihH97TduN97zJqSiysTV32SppQ4Yjq4uNs1iy/Ls4Ar0IVouD eGJQ== 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=r6LJRO6RCuu69hwPf+8g85nDH0IGGglHYjGymgmV6TM=; b=WfPL8r2rmzVnIyORJwKqRgsQHp839N5eAcloXBBgdedrUFZTa2xvX87J2lSfV0OJxX mYdvCJ+ul/QJZu40fYtfCgOmgl67ufWibZOL53moOtMcdfQBuj49sHq5kRR/lu1/pDIz LGoTmi/wRjRjqfAOLMSUM7+sOwCMY95nud0Y7z9X95PBZEm5+OIj3kXk4YmG/Dhsq8B2 bkSyuQEOGhrFu/R+0QiHcF/NNfRWPkA6j99G4jVEKJTMYLdfBIc/E5owr68PRHASIxMs 25lpNoHCtPCyiOFJTJJ9BdqdWEiUs9PIvVC3NNzYHHLLDdLJdfhbuppDpYzS9Y94Bp3k siig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DiUhP5T8; 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 d18si10590434pfn.202.2019.06.24.03.04.06; Mon, 24 Jun 2019 03:04:21 -0700 (PDT) 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=DiUhP5T8; 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 S1728981AbfFXKBx (ORCPT + 99 others); Mon, 24 Jun 2019 06:01:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:56410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbfFXJ6E (ORCPT ); Mon, 24 Jun 2019 05:58:04 -0400 Received: from localhost (f4.8f.5177.ip4.static.sl-reverse.com [119.81.143.244]) (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 7D151208E4; Mon, 24 Jun 2019 09:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561370283; bh=d37ICMBKvoimNiAqVg+adZ7Qd5e54zOXaNlzOgph3Rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DiUhP5T86wfu7o3gi94ztNWh2jIvl6iWGo2nh1+WjaD4yRMu3/Z+AtjckfysW3J1B mnBFfWxUvF89KQEAn+5XmKPmTuc3Dreqrx+K4+5q9U6wi4XM5wbX9Cqq7r8DforwXT C7jya8kkura1Ic07Tq8ikva1BHZTBOjGAI1gky6s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller , Sasha Levin Subject: [PATCH 4.14 16/51] parisc: Fix compiler warnings in float emulation code Date: Mon, 24 Jun 2019 17:56:34 +0800 Message-Id: <20190624092308.168299518@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190624092305.919204959@linuxfoundation.org> References: <20190624092305.919204959@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 6b98d9134e14f5ef4bcf64b27eedf484ed19a1ec ] Avoid such compiler warnings: arch/parisc/math-emu/cnv_float.h:71:27: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context] ((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) || Dintp2(dint_valueB)) arch/parisc/math-emu/fcnvxf.c:257:6: note: in expansion of macro ‘Dint_isinexact_to_sgl’ if (Dint_isinexact_to_sgl(srcp1,srcp2)) { Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- arch/parisc/math-emu/cnv_float.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/parisc/math-emu/cnv_float.h b/arch/parisc/math-emu/cnv_float.h index 933423fa5144..b0db61188a61 100644 --- a/arch/parisc/math-emu/cnv_float.h +++ b/arch/parisc/math-emu/cnv_float.h @@ -60,19 +60,19 @@ ((exponent < (SGL_P - 1)) ? \ (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE) -#define Int_isinexact_to_sgl(int_value) (int_value << 33 - SGL_EXP_LENGTH) +#define Int_isinexact_to_sgl(int_value) ((int_value << 33 - SGL_EXP_LENGTH) != 0) #define Sgl_roundnearest_from_int(int_value,sgl_value) \ if (int_value & 1<<(SGL_EXP_LENGTH - 2)) /* round bit */ \ - if ((int_value << 34 - SGL_EXP_LENGTH) || Slow(sgl_value)) \ + if (((int_value << 34 - SGL_EXP_LENGTH) != 0) || Slow(sgl_value)) \ Sall(sgl_value)++ #define Dint_isinexact_to_sgl(dint_valueA,dint_valueB) \ - ((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) || Dintp2(dint_valueB)) + (((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) != 0) || Dintp2(dint_valueB)) #define Sgl_roundnearest_from_dint(dint_valueA,dint_valueB,sgl_value) \ if (Dintp1(dint_valueA) & 1<<(SGL_EXP_LENGTH - 2)) \ - if ((Dintp1(dint_valueA) << 34 - SGL_EXP_LENGTH) || \ + if (((Dintp1(dint_valueA) << 34 - SGL_EXP_LENGTH) != 0) || \ Dintp2(dint_valueB) || Slow(sgl_value)) Sall(sgl_value)++ #define Dint_isinexact_to_dbl(dint_value) \ -- 2.20.1