Received: from eggs.gnu.org ([2001:4830:134:3::10]:43700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFzjD-0004LB-8h for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFzj8-0004BV-PV for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:11:10 -0400 Received: from indium.canonical.com ([91.189.90.7]:50177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFzj8-0004BP-KR for qemu-devel@nongnu.org; Thu, 23 Jun 2016 04:11:06 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bFzj4-0000iq-Sp for ; Thu, 23 Jun 2016 08:11:02 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D7CC32E80C1 for ; Thu, 23 Jun 2016 08:11:02 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Jun 2016 08:02:42 -0000 From: "T. Huth" <1382477@bugs.launchpad.net> Reply-To: Bug 1382477 <1382477@bugs.launchpad.net> Sender: bounces@canonical.com References: <20141017095520.25387.57643.malonedeb@soybean.canonical.com> Message-Id: <20160623080242.25705.51250.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1382477] Re: hw/i386/intel_iommu.c:902: wrong logical operator ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fix has been included here: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D1e06f131fd9a44dd4af ** 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/1382477 Title: hw/i386/intel_iommu.c:902: wrong logical operator ? Status in QEMU: Fix Released Bug description: /home/dcb/qemu/trunk/qemu/hw/i386/intel_iommu.c:902:5: error: logical =E2= =80=98and=E2=80=99 applied to non-boolean constant [-Werror=3Dlogical-op] pvtd_as =3D s->address_spaces[VTD_SID_TO_BUS(source_id)]; ^ $ fgrep VTD_SID_TO_BUS `find . -name \*.h -print` ./include/hw/i386/intel_iommu.h:#define VTD_SID_TO_BUS(sid) (((si= d) >> 8) && 0xff) $ = Sounds to me like #define VTD_SID_TO_BUS(sid) (((sid) >> 8) & 0xff) would be better. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1382477/+subscriptions