From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apdVt-0005mq-2l for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apdVo-0007KC-3t for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:12:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apdVn-0007K2-Ux for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:12:24 -0400 Message-ID: <1460387541.1765.12.camel@redhat.com> From: Gerd Hoffmann Date: Mon, 11 Apr 2016 17:12:21 +0200 In-Reply-To: References: <1460370583-29038-1-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PULL 0/5] virtio-input; live migration support, various bugfixes. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers > Hi. I'm afraid this doesn't compile on ppc64be: >=20 > /home/pm215/qemu/hw/input/virtio-input-hid.c:487:9: error: suggest > parentheses around =E2=80=98-=E2=80=99 in operand of =E2=80=98&=E2=80=99 = [-Werror=3Dparentheses] > .u.abs.max =3D const_le32(INPUT_EVENT_ABS_SIZE - 1), > ^ > /home/pm215/qemu/hw/input/virtio-input-hid.c:492:9: error: suggest > parentheses around =E2=80=98-=E2=80=99 in operand of =E2=80=98&=E2=80=99 = [-Werror=3Dparentheses] > .u.abs.max =3D const_le32(INPUT_EVENT_ABS_SIZE - 1), > ^ >=20 > It looks like the const_le32() and const_le16() macros in > include/hw/virtio/virtio-input.h are missing brackets around the macro > argument Indeed. /me needs a be machine. > -- can you send a patch which adds the missing brackets, please? Sure. > (Side question, why is an apparently generic endianness support > macro implemented in virtio-input.h ?) Suggestions for a better place? Looks like there isn't something like byteorder.h ... cheers, Gerd