Received: from eggs.gnu.org ([2001:4830:134:3::10]:46242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf4L9-0003FV-Rr for qemu-devel@nongnu.org; Fri, 17 Oct 2014 06:01:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xf4L3-0004lF-On for qemu-devel@nongnu.org; Fri, 17 Oct 2014 06:00:55 -0400 Received: from indium.canonical.com ([91.189.90.7]:58656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xf4L3-0004l8-JM for qemu-devel@nongnu.org; Fri, 17 Oct 2014 06:00:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1Xf4L2-000818-MU for ; Fri, 17 Oct 2014 10:00:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A5A642E80C1 for ; Fri, 17 Oct 2014 10:00:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Oct 2014 09:55:20 -0000 From: dcb <1382477@bugs.launchpad.net> Sender: bounces@canonical.com References: <20141017095520.25387.57643.malonedeb@soybean.canonical.com> Message-Id: <20141017095520.25387.57643.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1382477] [NEW] hw/i386/intel_iommu.c:902: wrong logical operator ? Reply-To: Bug 1382477 <1382477@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: /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) (((sid)= >> 8) && 0xff) $ = Sounds to me like #define VTD_SID_TO_BUS(sid) (((sid) >> 8) & 0xff) would be better. ** Affects: qemu Importance: Undecided Status: New -- = 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: New 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