From nobody Sat Feb 7 06:51:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1504028040974761.8518800549352; Tue, 29 Aug 2017 10:34:00 -0700 (PDT) Received: from localhost ([::1]:46297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmkOk-0002a4-Bj for importer@patchew.org; Tue, 29 Aug 2017 13:33:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmkNP-00025d-ER for qemu-devel@nongnu.org; Tue, 29 Aug 2017 13:32:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmkNO-0005as-Lp for qemu-devel@nongnu.org; Tue, 29 Aug 2017 13:32:35 -0400 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:34149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmkNI-0005ZY-Nt; Tue, 29 Aug 2017 13:32:28 -0400 Received: by mail-yw0-x241.google.com with SMTP id h127so2497739ywf.1; Tue, 29 Aug 2017 10:32:28 -0700 (PDT) Received: from localhost.localdomain ([98.192.46.210]) by smtp.gmail.com with ESMTPSA id n77sm1259513ywd.42.2017.08.29.10.32.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Aug 2017 10:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=QE8qVzZ6qug7v2sp4lilVZoojLLBjVQrsluNDtshDK8=; b=l2Rqav9DGTDRgmG0uVeWKow3p93Ps4E2Wop54gudweIzYfOhRyZCgOYlTNCiAC07G+ Yjy3m1kT8b8bNYmE5/FXThrfcS9SNMIBGmWWDoahx5S12BDi0rS09vFrdVMYffGOE4Y6 Ig0D6iq2kV8gxlvgORDX5VrxGh6NrGpdR71CzSRrlhaTtAC2dS83wZ5KGYJYsR0hlISn 9Dd9mBrVsyQsDfTRfXfW09J24WfmZ8u/5vFspLsICv4U5qpJ83AqoOV7P4jbR2cpQjAS lGhFwXrTnIQPYa9W6+o0xE4+rIOCaSI5noGtb/rRIzh5hiK2Lqa+gBObMH2meDrY0Gwv vAqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=QE8qVzZ6qug7v2sp4lilVZoojLLBjVQrsluNDtshDK8=; b=oD8FNLxLKMEJHBUgJHJrYOSW1/pZX5HFIqpJ7cPJjKW31Jh6cbrx2z2FNLhaPmxNqN 9YjFg2eiJMH5T44BsMypTGznrXUpetPpXlJshl0+/dIO51E3KGlRP5Y0DOLBgWRRPs4z Wy4mv2R9eBnuUPIyKc3FtfKjeI/ZCA6regsHlg0alIDgioqB6ZiyISICcK7L1Z5Y44IC rGDwqiWn8kveiH7e3pz6TqibqLrPzgibl4utlUQ2dmm4LnC6hxKcTvIW550D1XLLC7lE fITZcrUdfeAJ9YVyDd7uFkng0HjMmHwUzQVZewLOKF7a2Dvw2gGwyzE0RsR6lPE0ftYM QHNg== X-Gm-Message-State: AHYfb5gZKX45tIbRxCBuURWJk2MSAz894H0va4ElB6WICZghJZ9r6usW YdPJXRzM6Cq1GZe6pew= X-Received: by 10.129.166.196 with SMTP id d187mr1088557ywh.353.1504027947905; Tue, 29 Aug 2017 10:32:27 -0700 (PDT) From: Pranith Kumar To: Peter Maydell , qemu-arm@nongnu.org (open list:ARM cores), qemu-devel@nongnu.org (open list:All patches CC here) Date: Tue, 29 Aug 2017 13:32:26 -0400 Message-Id: <20170829173226.7625-1-bobby.prani@gmail.com> X-Mailer: git-send-email 2.13.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::241 Subject: [Qemu-devel] [PATCH] arm_gicv3_kvm: Fix compile warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following warning: /home/pranith/qemu/hw/intc/arm_gicv3_kvm.c:296:17: warning: logical not is = only applied to the left hand side of this bitwise operator [-Wlogical-not-= parentheses] if (!c->gicr_ctlr & GICR_CTLR_ENABLE_LPIS) { ^ ~ /home/pranith/qemu/hw/intc/arm_gicv3_kvm.c:296:17: note: add parentheses af= ter the '!' to evaluate the bitwise operator first if (!c->gicr_ctlr & GICR_CTLR_ENABLE_LPIS) { ^ /home/pranith/qemu/hw/intc/arm_gicv3_kvm.c:296:17: note: add parentheses ar= ound left hand side expression to silence this warning if (!c->gicr_ctlr & GICR_CTLR_ENABLE_LPIS) { ^ Signed-off-by: Pranith Kumar --- hw/intc/arm_gicv3_kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc/arm_gicv3_kvm.c index 6051c77705..481fe5405a 100644 --- a/hw/intc/arm_gicv3_kvm.c +++ b/hw/intc/arm_gicv3_kvm.c @@ -293,7 +293,7 @@ static void kvm_arm_gicv3_put(GICv3State *s) kvm_gicr_access(s, GICR_PROPBASER + 4, ncpu, ®h, true); =20 reg64 =3D c->gicr_pendbaser; - if (!c->gicr_ctlr & GICR_CTLR_ENABLE_LPIS) { + if (!(c->gicr_ctlr & GICR_CTLR_ENABLE_LPIS)) { /* Setting PTZ is advised if LPIs are disabled, to reduce * GIC initialization time. */ --=20 2.11.0