Received: from eggs.gnu.org ([2001:4830:134:3::10]:54163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG0Gv-0001Tz-2y for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bG0Gp-0004Y8-Qb for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:46:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:59528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG0Gp-0004Y1-L2 for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:45:55 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bG0Go-00018w-TS for ; Thu, 23 Jun 2016 08:45:54 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D4EBB2E80CD for ; Thu, 23 Jun 2016 08:45:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Jun 2016 08:38:30 -0000 From: "T. Huth" <1393440@bugs.launchpad.net> Reply-To: Bug 1393440 <1393440@bugs.launchpad.net> Sender: bounces@canonical.com References: <20141117145301.14743.14744.malonedeb@wampee.canonical.com> Message-Id: <20160623083830.17132.62825.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1393440] Re: pcie.c:148: possible error in OR expression ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fixed here: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D8e815eeefe205155f5 ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1393440 Title: pcie.c:148: possible error in OR expression ? Status in QEMU: Fix Released Bug description: [qemu/hw/pci/pcie.c:148] -> [qemu/hw/pci/pcie.c:148]: (style) Same expression on both sides of '|'. pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA, PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED | PCI_EXP_DEVSTA_URD | PCI_EXP_DEVSTA_URD); I am guessing that something like pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA, PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED | PCI_EXP_DEVSTA_FED | PCI_EXP_DEVSTA_URD); was intended. I used static analyser cppcheck to find this bug. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1393440/+subscriptions