Skip to contentSkip to conversation

qemu-xen-4.6.0-rc1 fails to compile under Fedora Core 22

DISCUSSION Konrad Rzeszutek Wilk 2 participants 2 messages Aug 21, 2015

lore
Share & tools
lore
#0 lore raw

Hey Stefano,

I get this when I try to compile the tree:
CC hw/usb/host-stub.o
CC hw/virtio/virtio-rng.o
hw/virtio/virtio-rng.c: In function ‘virtio_rng_device_realize’:
hw/virtio/virtio-rng.c:152:31: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]

     if (!vrng->conf.period_ms > 0) {
                               ^

cc1: all warnings being treated as errors /home/konrad/xen/tools/qemu-xen-dir/rules.mak:57: recipe for target 'hw/virtio/virtio-rng.o' failed make[3]: *** [hw/virtio/virtio-rng.o] Error 1

Could you please backport
3a292c420d2fec3c07a7ca56fbb064cd57a298a

Author: Amit Shah <[email protected]>
Date:   Thu Dec 11 13:17:42 2014 +0530

virtio-rng: fix check for period_ms validity

in the tree?

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 15 lines · Konrad Rzeszutek Wilk

Hey Stefano,

I get this when I try to compile the tree:
CC hw/usb/host-stub.o
CC hw/virtio/virtio-rng.o
hw/virtio/virtio-rng.c: In function ‘virtio_rng_device_realize’:
hw/virtio/virtio-rng.c:152:31: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]

     if (!vrng->conf.period_ms > 0) {
                               ^

cc1: all warnings being treated as errors /home/konrad/xen/tools/qemu-xen-dir/rules.mak:57: recipe for target 'hw/virtio/virtio-rng.o' failed make[3]: *** [hw/virtio/virtio-rng.o] Error 1

Could you please backport
3a292c420d2fec3c07a7ca56fbb064cd57a298a

Quoted 7 lines
Author: Amit Shah <[email protected]>
Date:   Thu Dec 11 13:17:42 2014 +0530

virtio-rng: fix check for period_ms validity

in the tree?

Done! Thanks for the report.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel