qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL 0/5] virtio-input; live migration support, variou


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PULL 0/5] virtio-input; live migration support, various bugfixes.
Date: Mon, 11 Apr 2016 17:12:21 +0200

> Hi. I'm afraid this doesn't compile on ppc64be:
> 
> /home/pm215/qemu/hw/input/virtio-input-hid.c:487:9: error: suggest
> parentheses around ‘-’ in operand of ‘&’ [-Werror=parentheses]
>          .u.abs.max = const_le32(INPUT_EVENT_ABS_SIZE - 1),
>          ^
> /home/pm215/qemu/hw/input/virtio-input-hid.c:492:9: error: suggest
> parentheses around ‘-’ in operand of ‘&’ [-Werror=parentheses]
>          .u.abs.max = const_le32(INPUT_EVENT_ABS_SIZE - 1),
>          ^
> 
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]